pike.git/lib/modules/Sql.pmod/mysql.pike:1:
/*
- * $Id: mysql.pike,v 1.12 2000/09/28 03:39:08 hubbe Exp $
+ * $Id$
*
* Glue for the Mysql-module
*/
//.
//. File: mysql.pike
- //. RCSID: $Id: mysql.pike,v 1.12 2000/09/28 03:39:08 hubbe Exp $
+ //. RCSID: $Id$
//. 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.
//.
pike.git/lib/modules/Sql.pmod/mysql.pike:30: Inside #if constant(Mysql.mysql)
{
return(replace(s,
({ "\\", "\"", "\0", "\'", "\n", "\r" }),
({ "\\\\", "\\\"", "\\0", "\\\'", "\\n", "\\r" })));
}
// The following time conversion functions assumes the SQL server
// handles time in this local timezone. They map the special zero
// time/date spec to 0.
- private constant timezone = localtime (0)->timezone;
+ private int timezone = localtime (0)->timezone;
//. - encode_time
//. Converts a system time value to an appropriately formatted time
//. spec for the database.
//. > time - Time to encode.
//. > date - If nonzero then time is taken as a "full" unix time spec
//. (where the date part is ignored), otherwise it's converted as a
//. seconds-since-midnight value.
string encode_time (int time, void|int date)
{