pike.git/
lib/
modules/
Sql.pmod/
mysql.pike
Branch:
Tag:
Non-build tags
All tags
No tags
1998-03-20
1998-03-20 21:58:23 by Henrik Grubbström (Grubba) <grubba@grubba.org>
4182212dd4b8609f100934ca1c399165cb8a2dbf (
19
lines) (+
18
/-
1
)
[
Show
|
Annotate
]
Branch:
7.9
Added some comments.
Rev: lib/modules/Sql.pmod/mysql.pike:1.4
1:
/*
-
* $Id: mysql.pike,v 1.
3
1998/03/
19
19
:
55
:
47
grubba Exp $
+
* $Id: mysql.pike,v 1.
4
1998/03/
20
21
:
58
:
23
grubba Exp $
* * Glue for the Mysql-module */
-
+
//.
+
//. File: mysql.pike
+
//. RCSID: $Id: mysql.pike,v 1.4 1998/03/20 21:58:23 grubba Exp $
+
//. Author: Henrik Grubbström (grubba@idonex.se)
+
//.
+
//. Synopsis: Implements the glue to the Mysql-module.
+
//.
+
//. +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+
//.
+
//. Implements the glue needed to access the Mysql-module from the generic
+
//. SQL module.
+
//.
+
inherit Mysql.mysql;
-
+
//. - quote
+
//. Quote a string so that it can safely be put in a query.
+
//. > s - String to quote.
string quote(string s) { return(replace(s, ({ "\\", "\"", "\0", "\'", "\n", "\r" }), ({ "\\\\", "\\\"", "\\0", "\\\'", "\\n", "\\r" }))); }