mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-01 22:03:01 -06:00
.cosmetics
git-svn-id: svn://ultimatepp.org/upp/trunk@4466 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
8293feab66
commit
07c87ddda1
1 changed files with 0 additions and 19 deletions
|
|
@ -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(;;) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue