/ Check-in [e7d18c70]
Login

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

Overview
Comment:Fix copy/paste typo in the new sqlite3_expanded_sql() function.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | sqlite3_trace_v2
Files: files | file ages | folders
SHA1: e7d18c70d2b8f09c9f5b978fe3d69d1088e42322
User & Date: mistachkin 2016-07-14 09:22:16
Context
2016-07-14
21:26
Initial work on the Tcl API interface to the new sqlite3_trace_v2() function. check-in: 7b59fa40 user: mistachkin tags: sqlite3_trace_v2
09:22
Fix copy/paste typo in the new sqlite3_expanded_sql() function. check-in: e7d18c70 user: mistachkin tags: sqlite3_trace_v2
01:13
Fix a parameter misordering on sqlite3_trace_v2() in the loadable extension interface. check-in: 989de2d5 user: drh tags: sqlite3_trace_v2
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/vdbeaux.c.

    79     79   ** freeing the returned string by passing it to sqlite3_free().
    80     80   **
    81     81   ** The SQLITE_TRACE_SIZE_LIMIT puts an upper bound on the size of
    82     82   ** expanded bound parameters.
    83     83   */
    84     84   char *sqlite3_expanded_sql(sqlite3_stmt *pStmt){
    85     85     Vdbe *p = (Vdbe *)pStmt;
    86         -  return p ? sqlite3VdbeExpandSql(p, p->zSql) : 0;
    87         -  if( p->zSql==0 ) return 0;
           86  +  if( p==0 || p->zSql==0 ) return 0;
           87  +  return sqlite3VdbeExpandSql(p, p->zSql);
    88     88   }
    89     89   
    90     90   /*
    91     91   ** Swap all content between two VDBE structures.
    92     92   */
    93     93   void sqlite3VdbeSwap(Vdbe *pA, Vdbe *pB){
    94     94     Vdbe tmp, *pTmp;