pike.git
/
lib
/
modules
/
Sql.pmod
/
sql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/sql_util.pmod:1:
/*
-
* $Id: sql_util.pmod,v 1.
11
2003/
04
/22
18
:
02
:
53
nilsson Exp $
+
* $Id: sql_util.pmod,v 1.
12
2003/
08
/22
14
:
24
:
06
nilsson Exp $
* * Some SQL utility functions. * They are kept here to avoid circular references. * * Henrik Grubbström 1999-07-01 */ #pike __REAL_VERSION__ //! Some SQL utility functions //! Quote a string so that it can safely be put in a query. //! //! @param s //! String to quote. string quote(string s) {
-
return
(
replace(s, "\'", "\'\'")
)
;
+
return
replace(s, "\'", "\'\'");
} //! Throw an error in case an unimplemented function is called. void fallback() { error( "Function not supported in this database." ); } //! Build a raw SQL query, given the cooked query and the variable bindings //! It's meant to be used as an emulation engine for those drivers not