From 07c87ddda1a15dc6a22ddbb24faeefbf5b7adaf7 Mon Sep 17 00:00:00 2001 From: cxl Date: Mon, 23 Jan 2012 18:22:57 +0000 Subject: [PATCH] .cosmetics git-svn-id: svn://ultimatepp.org/upp/trunk@4466 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- uppsrc/Sql/SqlCase.cpp | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/uppsrc/Sql/SqlCase.cpp b/uppsrc/Sql/SqlCase.cpp index 3836855f4..6e6fbcd96 100644 --- a/uppsrc/Sql/SqlCase.cpp +++ b/uppsrc/Sql/SqlCase.cpp @@ -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(;;) {