/ Check-in [43c2c60c]
Login

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

Overview
Comment:Fix a (harmless) signed integer overflow warning.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 43c2c60caf0ba105f57e32fc7fe6938dc29538c04d477a35b9b8bba2fb8fdd07
User & Date: drh 2018-04-09 00:46:42
Context
2018-04-09
11:43
Add a "flags" parameter to experimental API sqlite3changeset_apply_v2(). Also add the SQLITE_CHANGESETAPPLY_NOSAVEPOINT flag. check-in: 3d29631f user: dan tags: trunk
00:46
Fix a (harmless) signed integer overflow warning. check-in: 43c2c60c user: drh tags: trunk
2018-04-06
19:12
Enhance LEMON to show precendence of symbols and all rules in the report that is generated in parallel to the parser. check-in: 602fbd81 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/build.c.

  1492   1492   ** the schema-version whenever the schema changes.
  1493   1493   */
  1494   1494   void sqlite3ChangeCookie(Parse *pParse, int iDb){
  1495   1495     sqlite3 *db = pParse->db;
  1496   1496     Vdbe *v = pParse->pVdbe;
  1497   1497     assert( sqlite3SchemaMutexHeld(db, iDb, 0) );
  1498   1498     sqlite3VdbeAddOp3(v, OP_SetCookie, iDb, BTREE_SCHEMA_VERSION, 
  1499         -                    db->aDb[iDb].pSchema->schema_cookie+1);
         1499  +                   (int)(1+(unsigned)db->aDb[iDb].pSchema->schema_cookie));
  1500   1500   }
  1501   1501   
  1502   1502   /*
  1503   1503   ** Measure the number of characters needed to output the given
  1504   1504   ** identifier.  The number returned includes any quotes used
  1505   1505   ** but does not include the null terminator.
  1506   1506   **