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

Added sqlquote().

Rev: lib/modules/Sql.pmod/mysql.pike:1.2
parent a2fe4eed
Branches
Tags
No related merge requests found
/*
* $Id: mysql.pike,v 1.1 1997/03/06 21:20:19 grubba Exp $
* $Id: mysql.pike,v 1.2 1998/03/19 19:50:05 grubba Exp $
*
* Glue for the Mysql-module
*/
inherit Mysql.mysql;
string sqlquote(string s)
{
return(replace(s,
({ "\\", "\"", "\0", "\'", "\n", "\r" }),
({ "\\\\", "\\\"", "\\0", "\\\'", "\\n", "\\r" })));
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment