diff options
Diffstat (limited to 'lang/sql/adapter/sqlite-patches/14_custom_pragma.patch')
| -rw-r--r-- | lang/sql/adapter/sqlite-patches/14_custom_pragma.patch | 41 |
1 files changed, 17 insertions, 24 deletions
diff --git a/lang/sql/adapter/sqlite-patches/14_custom_pragma.patch b/lang/sql/adapter/sqlite-patches/14_custom_pragma.patch index b10d312b..2166663a 100644 --- a/lang/sql/adapter/sqlite-patches/14_custom_pragma.patch +++ b/lang/sql/adapter/sqlite-patches/14_custom_pragma.patch @@ -7,9 +7,9 @@ - callback.lo complete.lo ctime.lo date.lo delete.lo \ + callback.lo complete.lo ctime.lo date.lo db_pragma.lo delete.lo \ expr.lo fault.lo fkey.lo \ - fts3.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo fts3_porter.lo \ - fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo fts3_write.lo \ -@@ -207,6 +207,7 @@ + fts3.lo fts3_aux.lo fts3_expr.lo fts3_hash.lo fts3_icu.lo \ + fts3_porter.lo fts3_snippet.lo fts3_tokenizer.lo fts3_tokenizer1.lo \ +@@ -209,6 +209,7 @@ $(TOP)/src/complete.c \ $(TOP)/src/ctime.c \ $(TOP)/src/date.c \ @@ -17,7 +17,7 @@ $(TOP)/src/delete.c \ $(TOP)/src/expr.c \ $(TOP)/src/fault.c \ -@@ -573,6 +574,10 @@ +@@ -615,6 +616,10 @@ date.lo: $(TOP)/src/date.c $(HDR) $(LTCOMPILE) $(TEMP_STORE) -c $(TOP)/src/date.c @@ -30,16 +30,7 @@ --- src/pragma.c +++ src/pragma.c -@@ -49,7 +49,7 @@ - /* - ** Interpret the given string as a boolean value. - */ --static u8 getBoolean(const char *z){ -+u8 getBoolean(const char *z){ - return getSafetyLevel(z)&1; - } - -@@ -142,7 +142,7 @@ +@@ -601,7 +601,7 @@ /* ** Generate code to return a single integer value. */ @@ -48,7 +39,7 @@ Vdbe *v = sqlite3GetVdbe(pParse); int mem = ++pParse->nMem; i64 *pI64 = sqlite3DbMallocRaw(pParse->db, sizeof(value)); -@@ -283,6 +283,8 @@ +@@ -687,6 +687,8 @@ return azModeName[eMode]; } @@ -57,19 +48,21 @@ /* ** Process a pragma statement. ** -@@ -344,6 +346,9 @@ +@@ -783,6 +785,11 @@ goto pragma_out; } - -+ if( bdbsqlPragma(pParse, zLeft, zRight, iDb)==0 ){ -+ /* Do nothing if this was a Berkeley DB specific pragma. */ -+ }else - #ifndef SQLITE_OMIT_PAGER_PRAGMAS - /* - ** PRAGMA [database.]default_cache_size + ++ if ( bdbsqlPragma(pParse, zLeft, zRight, iDb)==0 ) { ++ /* Do nothing if this was a Berkeley DB specific pragma. */ ++ goto pragma_out; ++ } ++ + /* Locate the pragma in the lookup table */ + lwr = 0; + upr = ArraySize(aPragmaNames)-1; --- tool/mksqlite3c.tcl +++ tool/mksqlite3c.tcl -@@ -250,6 +250,7 @@ +@@ -269,6 +269,7 @@ btmutex.c btree.c backup.c |
