/ Check-in [34208f0b]
Login

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

Overview
Comment:Add an assert() statement that will alert us if the potential problem identified by #3243 ever becomes a reality. (CVS 5532)
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 34208f0ba420ca6bef16991eba200d5ed68d5430
User & Date: danielk1977 2008-08-04 04:39:49
Context
2008-08-04
11:49
Make it easier to build with the icu extension enabled. Include icu.c in the amalgamation source. Ticket #3245. (CVS 5533) check-in: e42ff97b user: danielk1977 tags: trunk
04:39
Add an assert() statement that will alert us if the potential problem identified by #3243 ever becomes a reality. (CVS 5532) check-in: 34208f0b user: danielk1977 tags: trunk
04:28
Add the pkgconfigdir variable to Makefile.in. Ticket #3242. (CVS 5531) check-in: 540c9d4c user: danielk1977 tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

    18     18   **     CREATE INDEX
    19     19   **     DROP INDEX
    20     20   **     creating ID lists
    21     21   **     BEGIN TRANSACTION
    22     22   **     COMMIT
    23     23   **     ROLLBACK
    24     24   **
    25         -** $Id: build.c,v 1.492 2008/08/02 03:50:39 drh Exp $
           25  +** $Id: build.c,v 1.493 2008/08/04 04:39:49 danielk1977 Exp $
    26     26   */
    27     27   #include "sqliteInt.h"
    28     28   #include <ctype.h>
    29     29   
    30     30   /*
    31     31   ** This routine is called when a new SQL statement is beginning to
    32     32   ** be parsed.  Initialize the pParse structure as needed.
................................................................................
  1520   1520       ** a schema-lock excludes all other database users, the write-lock would
  1521   1521       ** be redundant.
  1522   1522       */
  1523   1523       if( pSelect ){
  1524   1524         SelectDest dest;
  1525   1525         Table *pSelTab;
  1526   1526   
         1527  +      assert(pParse->nTab==0);
  1527   1528         sqlite3VdbeAddOp3(v, OP_OpenWrite, 1, pParse->regRoot, iDb);
  1528   1529         sqlite3VdbeChangeP5(v, 1);
  1529   1530         pParse->nTab = 2;
  1530   1531         sqlite3SelectDestInit(&dest, SRT_Table, 1);
  1531   1532         sqlite3Select(pParse, pSelect, &dest, 0, 0, 0);
  1532   1533         sqlite3VdbeAddOp1(v, OP_Close, 1);
  1533   1534         if( pParse->nErr==0 ){