/ Check-in [fdfdc777]
Login

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

Overview
Comment:Change to order of two branches in vtab.c in order to a restore 100% test coverage.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: fdfdc777c59a108496c7381c8b267b38485e2c13
User & Date: drh 2009-12-08 22:16:15
Context
2009-12-09
05:30
Mark fts3ReallocOrFree and fts3InitVtab as static. Ticket [ff44d82f3b]. check-in: a9038306 user: dan tags: trunk
2009-12-08
22:16
Change to order of two branches in vtab.c in order to a restore 100% test coverage. check-in: fdfdc777 user: drh tags: trunk
19:58
Add comments to better explain the two-pass memory allocation approach for prepared statements. check-in: 0e5e18ea user: drh tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/vtab.c.

666
667
668
669
670
671
672
673
674

675
676
677
678
679
680
681
  if( pParse==0 ){
    rc = SQLITE_NOMEM;
  }else{
    pParse->declareVtab = 1;
    pParse->db = db;
  
    if( SQLITE_OK==sqlite3RunParser(pParse, zCreateTable, &zErr) 
     && !db->mallocFailed
     && pParse->pNewTable

     && !pParse->pNewTable->pSelect
     && (pParse->pNewTable->tabFlags & TF_Virtual)==0
    ){
      if( !pTab->aCol ){
        pTab->aCol = pParse->pNewTable->aCol;
        pTab->nCol = pParse->pNewTable->nCol;
        pParse->pNewTable->nCol = 0;







<

>







666
667
668
669
670
671
672

673
674
675
676
677
678
679
680
681
  if( pParse==0 ){
    rc = SQLITE_NOMEM;
  }else{
    pParse->declareVtab = 1;
    pParse->db = db;
  
    if( SQLITE_OK==sqlite3RunParser(pParse, zCreateTable, &zErr) 

     && pParse->pNewTable
     && !db->mallocFailed
     && !pParse->pNewTable->pSelect
     && (pParse->pNewTable->tabFlags & TF_Virtual)==0
    ){
      if( !pTab->aCol ){
        pTab->aCol = pParse->pNewTable->aCol;
        pTab->nCol = pParse->pNewTable->nCol;
        pParse->pNewTable->nCol = 0;