]> git.ipfire.org Git - thirdparty/sqlite.git/commitdiff
Fix pragma code generation so that it always outputs an OP_Trace opcode so
authordrh <drh@noemail.net>
Thu, 11 Apr 2013 13:26:18 +0000 (13:26 +0000)
committerdrh <drh@noemail.net>
Thu, 11 Apr 2013 13:26:18 +0000 (13:26 +0000)
that pragmas are shown in sqlite3_trace() output.

FossilOrigin-Name: 663f04bd48bc6f302230a22bd22b82bde2353943

manifest
manifest.uuid
src/pragma.c

index 8a66fe58aa69ebca65aa94dfe0dbde908a54a033..4fe8619c70526a6db5a5620db9a20bfcd4073a0a 100644 (file)
--- a/manifest
+++ b/manifest
@@ -1,5 +1,5 @@
-C Show\sthe\sprocess-id\son\slog\smessages\sfrom\smptester.
-D 2013-04-11T11:53:45.288
+C Fix\spragma\scode\sgeneration\sso\sthat\sit\salways\soutputs\san\sOP_Trace\sopcode\sso\nthat\spragmas\sare\sshown\sin\ssqlite3_trace()\soutput.
+D 2013-04-11T13:26:18.388
 F Makefile.arm-wince-mingw32ce-gcc d6df77f1f48d690bd73162294bbba7f59507c72f
 F Makefile.in 3dd3fcb87b70c78d99b2c8a03e44ec86d6ca9ce2
 F Makefile.linux-gcc 91d710bdc4998cb015f39edf3cb314ec4f4d7e23
@@ -174,7 +174,7 @@ F src/parse.y 5d5e12772845805fdfeb889163516b84fbb9ae95
 F src/pcache.c f8043b433a57aba85384a531e3937a804432a346
 F src/pcache.h a5e4f5d9f5d592051d91212c5949517971ae6222
 F src/pcache1.c 9fd22671c270b35131ef480bbc00392b8b5f8ab9
-F src/pragma.c 8bbc8c8697d13f76394e592dcecafce3491ed8ba
+F src/pragma.c 216d6c24520f7b2e267a2356e5d3269d28690f49
 F src/prepare.c 743e484233c51109666d402f470523553b41797c
 F src/printf.c 4a9f882f1c1787a8b494a2987765acf9d97ac21f
 F src/random.c cd4a67b3953b88019f8cd4ccd81394a8ddfaba50
@@ -1050,7 +1050,7 @@ F tool/vdbe-compress.tcl f12c884766bd14277f4fcedcae07078011717381
 F tool/warnings-clang.sh f6aa929dc20ef1f856af04a730772f59283631d4
 F tool/warnings.sh fbc018d67fd7395f440c28f33ef0f94420226381
 F tool/win/sqlite.vsix 97894c2790eda7b5bce3cc79cb2a8ec2fde9b3ac
-P e238dcf9189c029fbdcf89339e21d9cdd8fbf2c5
-R 961d2f18ca03b287ca1083092d6feb69
+P 6748a83dc5c02db37ecd963e678c5c69db142cac
+R d345752e155752ef7baeb6380027dfce
 U drh
-Z d718ebcef0d40f58f76fbe3a2824e294
+Z c8c7d1ee07a5c8a52f14de0a5a9d5c85
index 68dd000d58367caa4fd4bfe493503c70b0397f98..234c88c0fe9e74f50a3874822b67c74de70027b8 100644 (file)
@@ -1 +1 @@
-6748a83dc5c02db37ecd963e678c5c69db142cac
\ No newline at end of file
+663f04bd48bc6f302230a22bd22b82bde2353943
\ No newline at end of file
index 340e62d0dd1ac10321e73d2a1e05359cea8a81a5..f4fc73d297d1d895f63b2691e3b96d6090101520 100644 (file)
@@ -319,7 +319,7 @@ void sqlite3Pragma(
   int rc;                      /* return value form SQLITE_FCNTL_PRAGMA */
   sqlite3 *db = pParse->db;    /* The database connection */
   Db *pDb;                     /* The specific database being pragmaed */
-  Vdbe *v = pParse->pVdbe = sqlite3VdbeCreate(db);  /* Prepared statement */
+  Vdbe *v = sqlite3GetVdbe(pParse);  /* Prepared statement */
 
   if( v==0 ) return;
   sqlite3VdbeRunOnlyOnce(v);
@@ -402,11 +402,12 @@ void sqlite3Pragma(
     static const VdbeOpList getCacheSize[] = {
       { OP_Transaction, 0, 0,        0},                         /* 0 */
       { OP_ReadCookie,  0, 1,        BTREE_DEFAULT_CACHE_SIZE},  /* 1 */
-      { OP_IfPos,       1, 7,        0},
+      { OP_IfPos,       1, 8,        0},
       { OP_Integer,     0, 2,        0},
       { OP_Subtract,    1, 2,        1},
-      { OP_IfPos,       1, 7,        0},
+      { OP_IfPos,       1, 8,        0},
       { OP_Integer,     0, 1,        0},                         /* 6 */
+      { OP_Noop,        0, 0,        0},
       { OP_ResultRow,   1, 1,        0},
     };
     int addr;