/ Check-in [83b342a4]
Login

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

Overview
Comment:Remove two pointless assert() statements. This should silence harmless compiler warnings reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1152845
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1:83b342a44ffc9ea07dc4d59f2866cefc68ee4f13
User & Date: drh 2015-04-09 16:30:56
Context
2015-04-09
18:14
Add the --primarykey option to the sqldiff tool, which causes it to use the schema-defined PRIMARY KEY. check-in: 5063f907 user: drh tags: trunk
16:30
Remove two pointless assert() statements. This should silence harmless compiler warnings reported at https://bugzilla.mozilla.org/show_bug.cgi?id=1152845 check-in: 83b342a4 user: drh tags: trunk
13:40
Fix comment typos in the sqldiff.c utility program. check-in: 32ab2bb9 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  3772   3772   ** The operator is "natural cross join".  The A and B operands are stored
  3773   3773   ** in p->a[0] and p->a[1], respectively.  The parser initially stores the
  3774   3774   ** operator with A.  This routine shifts that operator over to B.
  3775   3775   */
  3776   3776   void sqlite3SrcListShiftJoinType(SrcList *p){
  3777   3777     if( p ){
  3778   3778       int i;
  3779         -    assert( p->a || p->nSrc==0 );
  3780   3779       for(i=p->nSrc-1; i>0; i--){
  3781   3780         p->a[i].jointype = p->a[i-1].jointype;
  3782   3781       }
  3783   3782       p->a[0].jointype = 0;
  3784   3783     }
  3785   3784   }
  3786   3785   

Changes to src/trigger.c.

   676    676   ){
   677    677     int iDb;             /* Index of the database to use */
   678    678     SrcList *pSrc;       /* SrcList to be returned */
   679    679   
   680    680     pSrc = sqlite3SrcListAppend(pParse->db, 0, &pStep->target, 0);
   681    681     if( pSrc ){
   682    682       assert( pSrc->nSrc>0 );
   683         -    assert( pSrc->a!=0 );
   684    683       iDb = sqlite3SchemaToIndex(pParse->db, pStep->pTrig->pSchema);
   685    684       if( iDb==0 || iDb>=2 ){
   686    685         sqlite3 *db = pParse->db;
   687    686         assert( iDb<pParse->db->nDb );
   688    687         pSrc->a[pSrc->nSrc-1].zDatabase = sqlite3DbStrDup(db, db->aDb[iDb].zName);
   689    688       }
   690    689     }