Skip to content
Snippets Groups Projects
Commit 63783214 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Change to support '/''s in the database host specification.

Rev: lib/modules/Sql.pmod/sql.pike:1.24
parent b1335ccc
No related branches found
No related tags found
No related merge requests found
/*
* $Id: sql.pike,v 1.23 1998/06/17 13:01:36 grubba Exp $
* $Id: sql.pike,v 1.24 1998/07/03 11:42:28 grubba Exp $
*
* Implements the generic parts of the SQL-interface
*
......@@ -8,7 +8,7 @@
//.
//. File: sql.pike
//. RCSID: $Id: sql.pike,v 1.23 1998/06/17 13:01:36 grubba Exp $
//. RCSID: $Id: sql.pike,v 1.24 1998/07/03 11:42:28 grubba Exp $
//. Author: Henrik Grubbström (grubba@idonex.se)
//.
//. Synopsis: Implements the generic parts of the SQL-interface.
......@@ -120,8 +120,8 @@ void create(void|string|object host, void|string db,
arr = host/"/";
if (sizeof(arr) > 1) {
if (!db) {
db = arr[1..]*"/";
host = arr[0];
db = arr[-1];
host = arr[..sizeof(arr)-2]*"/";
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment