/ Check-in [468a389c]
Login

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

Overview
Comment:Fix typo in comment. Skip tests added by check-in [4761db83b6] when running on Windows.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:468a389cdc8b6f92c77b11f682e210ad8cce7e3dbc0df308a898f4115e85fce2
User & Date: mistachkin 2018-02-07 18:45:00
Context
2018-02-08
01:00
Enhance sqlite3ErrStr() to include several more error codes. check-in: ad5d3bdc user: mistachkin tags: trunk
2018-02-07
18:45
Fix typo in comment. Skip tests added by check-in [4761db83b6] when running on Windows. check-in: 468a389c user: mistachkin tags: trunk
18:02
In extensions rtree, fts3 and fts5, ensure that when dynamic buffers are bound to persistent SQL statements using SQLITE_STATIC, the binding is replaced with an SQL NULL before the buffer is freed. Otherwise, a user may obtain a pointer to the persistent statement using sqlite3_next_stmt() and attempt to access the freed buffer using sqlite3_expanded_sql() or similar. check-in: 2a5f813b user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to src/pager.c.

  4099   4099     for(p=pPager->pMmapFreelist; p; p=pNext){
  4100   4100       pNext = p->pDirty;
  4101   4101       sqlite3_free(p);
  4102   4102     }
  4103   4103   }
  4104   4104   
  4105   4105   /* Verify that the database file has not be deleted or renamed out from
  4106         -** under the pager.  Return SQLITE_OK if the database is still were it ought
         4106  +** under the pager.  Return SQLITE_OK if the database is still where it ought
  4107   4107   ** to be on disk.  Return non-zero (SQLITE_READONLY_DBMOVED or some other error
  4108   4108   ** code from sqlite3OsAccess()) if the database has gone missing.
  4109   4109   */
  4110   4110   static int databaseIsUnmoved(Pager *pPager){
  4111   4111     int bHasMoved = 0;
  4112   4112     int rc;
  4113   4113   

Changes to test/nockpt.test.

    57     57   } {1 2 3 4 5 6 7 8 9}
    58     58   
    59     59   do_execsql_test 1.13 { PRAGMA main.journal_mode } {wal}
    60     60   do_test 1.14 { sqlite3_db_config db NO_CKPT_ON_CLOSE 1 } {1}
    61     61   do_execsql_test 1.14 { PRAGMA main.journal_mode = delete } {delete}
    62     62   do_test 1.15 { file exists test.db-wal } {0}
    63     63   
           64  +if {$::tcl_platform(platform)!="windows"} {
    64     65   #-------------------------------------------------------------------------
    65     66   # Test an unusual scenario:
    66     67   #
    67     68   #   1. A wal mode db is opened and written. Then sqlite3_close_v2() used
    68     69   #      to close the db handle while there is still an unfinalized
    69     70   #      statement (so the db handle stays open).
    70     71   #
................................................................................
   135    136     sqlite3_finalize $::stmt
   136    137     sqlite3 db3 test.db
   137    138     execsql { 
   138    139       PRAGMA integrity_check; 
   139    140       SELECT * FROM y1;
   140    141     } db3
   141    142   } {ok a b c d e g}
          143  +}
   142    144   
   143    145   
   144    146   finish_test