aboutsummaryrefslogtreecommitdiff
path: root/src/util.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2013-09-13 16:36:46 +0000
committerdrh <drh@noemail.net>2013-09-13 16:36:46 +0000
commit9ccd8659ff397dc03dd2c40f8d13e12d5445c01f (patch)
tree968995f7a44e1c4471fc5ed80834eb740f8ca7f1 /src/util.c
parentf1d2670d40185393386e3c76291d83beb7eb3ad5 (diff)
downloadsqlite-9ccd8659ff397dc03dd2c40f8d13e12d5445c01f.tar.gz
sqlite-9ccd8659ff397dc03dd2c40f8d13e12d5445c01f.zip
Change the PRAGMA parser to use a binary search for the pragma name.
Also: Minor performance enhancement to sqlite3DbFree() and to the token dequoter. FossilOrigin-Name: 870c030b4e1854e6e0d39907fadbd82774c16f56
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/util.c b/src/util.c
index d83a63015..7ccf2a1fd 100644
--- a/src/util.c
+++ b/src/util.c
@@ -193,7 +193,8 @@ int sqlite3Dequote(char *z){
case '[': quote = ']'; break; /* For MS SqlServer compatibility */
default: return -1;
}
- for(i=1, j=0; ALWAYS(z[i]); i++){
+ for(i=1, j=0;; i++){
+ assert( z[i] );
if( z[i]==quote ){
if( z[i+1]==quote ){
z[j++] = quote;