.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@4466 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2012-01-23 18:22:57 +00:00
parent 8293feab66
commit 07c87ddda1

View file

@ -31,25 +31,6 @@ T ReadSqlValue(T& x, const char *&s) {
return x;
}
static String SqlFormat__(const char *s, int res, bool mysql) {
if(!s || !*s) return "NULL";
String result;
result.Reserve(res);
result.Cat("\'");
for(; *s; s++) {
if(*s == '\'')
result.Cat(mysql ? "\\\'" : "\'\'");
else {
if((*s == '\"' || *s == '\\') && mysql)
result.Cat('\\');
result.Cat(*s);
}
}
result.Cat('\'');
return result;
}
void SqlCompile(const char *&s, StringBuffer *r, byte dialect)
{
for(;;) {