/ Check-in [d64f248d]
Login
SQLite training in Houston TX on 2019-11-05 (details)
Part of the 2019 Tcl Conference

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

Overview
Comment:Move variable declaration to address compilation issue (C89).
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: d64f248da3ce7762fe2c17fbc83f7bea9ffca73723bb3ad0982a85320839da90
User & Date: mistachkin 2018-12-17 22:19:57
Context
2018-12-18
20:31
In defensive mode, do not allow shadow tables to be renamed using ALTER TABLE. check-in: 23e200da user: dan tags: trunk
17:32
Merge latest trunk changes into this branch. check-in: b3a163b4 user: dan tags: begin-concurrent-wal2
17:20
Merge latest trunk changes into this branch. check-in: 123cbb33 user: dan tags: begin-concurrent
2018-12-17
22:19
Move variable declaration to address compilation issue (C89). check-in: d64f248d user: mistachkin tags: trunk
2018-12-15
07:12
Fix errors in comments in fts5.h. check-in: 4002790d user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Show Whitespace Changes Patch

Changes to src/shell.c.in.

  3901   3901            "CREATE VIRTUAL TABLE zip USING zipfile(%Q);", p->zDbFilename);
  3902   3902         sqlite3_exec(p->db, zSql, 0, 0, 0);
  3903   3903         sqlite3_free(zSql);
  3904   3904       }
  3905   3905   #ifdef SQLITE_ENABLE_DESERIALIZE
  3906   3906       else
  3907   3907       if( p->openMode==SHELL_OPEN_DESERIALIZE || p->openMode==SHELL_OPEN_HEXDB ){
         3908  +      int rc;
  3908   3909         int nData = 0;
  3909   3910         unsigned char *aData;
  3910   3911         if( p->openMode==SHELL_OPEN_DESERIALIZE ){
  3911   3912           aData = (unsigned char*)readFile(p->zDbFilename, &nData);
  3912   3913         }else{
  3913   3914           aData = readHexDb(p, &nData);
  3914   3915           if( aData==0 ){
  3915   3916             utf8_printf(stderr, "Error in hexdb input\n");
  3916   3917             return;
  3917   3918           }
  3918   3919         }
  3919         -      int rc = sqlite3_deserialize(p->db, "main", aData, nData, nData,
         3920  +      rc = sqlite3_deserialize(p->db, "main", aData, nData, nData,
  3920   3921                      SQLITE_DESERIALIZE_RESIZEABLE |
  3921   3922                      SQLITE_DESERIALIZE_FREEONCLOSE);
  3922   3923         if( rc ){
  3923   3924           utf8_printf(stderr, "Error: sqlite3_deserialize() returns %d\n", rc);
  3924   3925         }
  3925   3926       }
  3926   3927   #endif