/ Check-in [2a1cc632]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Give symbolic names to the special prepared statements used to implement incremental blob I/O.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | named-blob-I/O
Files: files | file ages | folders
SHA3-256: 2a1cc6327a3d8f2f65a296f5bed7fb43665b812c4c45871798db917a99481c14
User & Date: drh 2019-01-06 01:46:00
Context
2019-01-06
01:46
Give symbolic names to the special prepared statements used to implement incremental blob I/O. Leaf check-in: 2a1cc632 user: drh tags: named-blob-I/O
2019-01-05
21:56
Add the exprNodeCopy() routine that will safely memcpy() an Expr node that might be a size-reduced node. check-in: a874c649 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeblob.c.

   268    268           {OP_Column,         0, 0, 1},  /* 3  */
   269    269           {OP_ResultRow,      1, 0, 0},  /* 4  */
   270    270           {OP_Halt,           0, 0, 0},  /* 5  */
   271    271         };
   272    272         Vdbe *v = (Vdbe *)pBlob->pStmt;
   273    273         int iDb = sqlite3SchemaToIndex(db, pTab->pSchema);
   274    274         VdbeOp *aOp;
          275  +
          276  +#ifdef SQLITE_DEBUG
          277  +      char *zName;
          278  +      zName = sqlite3MPrintf(db, "-- sqlite3_blob_open(%s,%s,%s)",
          279  +                              zDb, zTable, zColumn);
          280  +      if( zName ){
          281  +        sqlite3VdbeSetSql(v, zName, (int)strlen(zName), 0);
          282  +        sqlite3DbFree(db, zName);
          283  +      }
          284  +#endif
   275    285   
   276    286         sqlite3VdbeAddOp4Int(v, OP_Transaction, iDb, wrFlag, 
   277    287                              pTab->pSchema->schema_cookie,
   278    288                              pTab->pSchema->iGeneration);
   279    289         sqlite3VdbeChangeP5(v, 1);
   280    290         assert( sqlite3VdbeCurrentAddr(v)==2 || db->mallocFailed );
   281    291         aOp = sqlite3VdbeAddOpList(v, ArraySize(openBlob), openBlob, iLn);