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

Changed to support '/''s in the host specification.

Rev: lib/modules/Sql.pmod/sql.pike:1.19
parent 5fc3d84b
No related branches found
No related tags found
No related merge requests found
/* /*
* $Id: sql.pike,v 1.18 1998/06/17 13:01:48 grubba Exp $ * $Id: sql.pike,v 1.19 1998/07/03 11:43:55 grubba Exp $
* *
* Implements the generic parts of the SQL-interface * Implements the generic parts of the SQL-interface
* *
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
//. //.
//. File: sql.pike //. File: sql.pike
//. RCSID: $Id: sql.pike,v 1.18 1998/06/17 13:01:48 grubba Exp $ //. RCSID: $Id: sql.pike,v 1.19 1998/07/03 11:43:55 grubba Exp $
//. Author: Henrik Grubbström (grubba@idonex.se) //. Author: Henrik Grubbström (grubba@idonex.se)
//. //.
//. Synopsis: Implements the generic parts of the SQL-interface. //. Synopsis: Implements the generic parts of the SQL-interface.
...@@ -120,8 +120,8 @@ void create(void|string|object host, void|string db, ...@@ -120,8 +120,8 @@ void create(void|string|object host, void|string db,
arr = host/"/"; arr = host/"/";
if (sizeof(arr) > 1) { if (sizeof(arr) > 1) {
if (!db) { if (!db) {
db = arr[1..]*"/"; db = arr[-1];
host = arr[0]; 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