aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2007-05-10 13:23:22 +0000
committerdrh <drh@noemail.net>2007-05-10 13:23:22 +0000
commit85892bde6f94bb307b84a8f3d70612dcecf17c38 (patch)
treed253a89986cde6706d08134c7b0a74e4bb350d41 /src
parent89a43bc588a75c6d215beb1bffa294cc9761937f (diff)
downloadsqlite-85892bde6f94bb307b84a8f3d70612dcecf17c38.tar.gz
sqlite-85892bde6f94bb307b84a8f3d70612dcecf17c38.zip
Fix a C++ism in func.c. (CVS 3970)
FossilOrigin-Name: 9c0050a10c6bea75ada902c16eb28eb3cf864718
Diffstat (limited to 'src')
-rw-r--r--src/func.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/func.c b/src/func.c
index a8fbe104e..b2e27f624 100644
--- a/src/func.c
+++ b/src/func.c
@@ -16,7 +16,7 @@
** sqliteRegisterBuildinFunctions() found at the bottom of the file.
** All other code has file scope.
**
-** $Id: func.c,v 1.153 2007/05/09 08:24:44 danielk1977 Exp $
+** $Id: func.c,v 1.154 2007/05/10 13:23:23 drh Exp $
*/
#include "sqliteInt.h"
#include <ctype.h>
@@ -536,6 +536,7 @@ static void likeFunc(
sqlite3_value **argv
){
const unsigned char *zA, *zB;
+ int escape = 0;
/* Limit the length of the LIKE or GLOB pattern to avoid problems
** of deep recursion and N*N behavior in patternCompare().
@@ -547,7 +548,6 @@ static void likeFunc(
zB = sqlite3_value_text(argv[0]);
zA = sqlite3_value_text(argv[1]);
- int escape = 0;
if( argc==3 ){
/* The escape character string must consist of a single UTF-8 character.
** Otherwise, return an error.