/ Check-in [95d33812]
Login

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

Overview
Comment:Update test file "resetdb.test" so that it works with the "prepare" permutation.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:95d338124be2e0e18f17354b28f4320336202f1a4ec1177df753b2800e954bfb
User & Date: dan 2019-02-05 08:55:43
Context
2019-02-05
12:16
Keep the temp_store_directory and data_store_directory pragmas even when compiling with SQLITE_OMIT_DEPRECATED. check-in: 93386a7c user: drh tags: trunk
08:55
Update test file "resetdb.test" so that it works with the "prepare" permutation. check-in: 95d33812 user: dan tags: trunk
2019-02-04
21:10
Early detection of implausibly sized records to avoid unnecessary large memory allocations. check-in: 2c8769c6 user: drh tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/resetdb.test.

    79     79   
    80     80   do_test 210 {
    81     81     # Reset the database file using SQLITE_DBCONFIG_RESET_DATABASE
    82     82     sqlite3_db_config db RESET_DB 1
    83     83     db eval VACUUM
    84     84     sqlite3_db_config db RESET_DB 0
    85     85   
           86  +  # If using sqlite3_prepare() instead of _v2() or _v3(), the block 
           87  +  # below raises an SQLITE_SCHEMA error. The following fixes this.
           88  +  if {[permutation]=="prepare"} { catchsql "SELECT * FROM sqlite_master" db2 }
           89  +
    86     90     # Verify that the reset took, even on the separate database connection
    87     91     catchsql {
    88     92        PRAGMA page_count;
    89     93        PRAGMA page_size;
    90     94        PRAGMA quick_check;
    91     95        PRAGMA journal_mode;
    92     96     } db2