/ Check-in [5a6fd9e0]
Login

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

Overview
Comment:Fix an error message in speedtest1.c and make the "trigger" testset sensitive to the --size parameter.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256:5a6fd9e0156a14e6509c4ea713c4b332b2d050432b49571c7a45a7ecc7cb5da4
User & Date: drh 2018-04-03 20:44:53
Context
2018-04-04
12:21
Fix segfault in 'eval.c' extension when used with 'empty_result_callbacks'. check-in: e8b87bd4 user: mistachkin tags: trunk
2018-04-03
20:44
Fix an error message in speedtest1.c and make the "trigger" testset sensitive to the --size parameter. check-in: 5a6fd9e0 user: drh tags: trunk
20:00
Update speedtest1.c with new testset "trigger" based on the tests in speed4p.test. check-in: 7b7fa5fa user: dan tags: trunk
Changes
Hide Diffs Side-by-Side Diffs Ignore Whitespace Patch

Changes to test/speedtest1.c.

  1647   1647   
  1648   1648   /*
  1649   1649   */
  1650   1650   void testset_trigger(void){
  1651   1651     int jj, ii;
  1652   1652     char zNum[2000];              /* A number name */
  1653   1653   
  1654         -  const int NROW  = 50000;
  1655         -  const int NROW2 = 10000;
         1654  +  const int NROW  = 500*g.szTest;
         1655  +  const int NROW2 = 100*g.szTest;
  1656   1656   
  1657   1657     speedtest1_exec(
  1658   1658         "BEGIN;"
  1659   1659         "CREATE TABLE t1(rowid INTEGER PRIMARY KEY, i INTEGER, t TEXT);"
  1660   1660         "CREATE TABLE t2(rowid INTEGER PRIMARY KEY, i INTEGER, t TEXT);"
  1661   1661         "CREATE TABLE t3(rowid INTEGER PRIMARY KEY, i INTEGER, t TEXT);"
  1662   1662         "CREATE VIEW v1 AS SELECT rowid, i, t FROM t1;"
................................................................................
  2152   2152   #ifdef SQLITE_ENABLE_RTREE
  2153   2153       testset_rtree(6, 147);
  2154   2154   #else
  2155   2155       fatal_error("compile with -DSQLITE_ENABLE_RTREE to enable "
  2156   2156                   "the R-Tree tests\n");
  2157   2157   #endif
  2158   2158     }else{
  2159         -    fatal_error("unknown testset: \"%s\"\nChoices: main debug1 cte rtree fp\n",
         2159  +    fatal_error("unknown testset: \"%s\"\n"
         2160  +                "Choices: cte debug1 fp main orm rtree trigger\n",
  2160   2161                    zTSet);
  2161   2162     }
  2162   2163     speedtest1_final();
  2163   2164   
  2164   2165     if( showStats ){
  2165   2166       sqlite3_exec(g.db, "PRAGMA compile_options", xCompileOptions, 0, 0);
  2166   2167     }