Lines Matching refs:zFilename
197 const char *zFilename = (char*)pArg; in worker_bee() local
200 int t = atoi(zFilename); in worker_bee()
207 printf("%s: START\n", zFilename); in worker_bee()
210 db = sqlite_open(&zFilename[2], 0, &azErr); in worker_bee()
212 fprintf(stdout,"%s: can't open\n", zFilename); in worker_bee()
215 sqlite_busy_handler(db, db_is_locked, zFilename); in worker_bee()
216 db_execute(db, zFilename, "CREATE TABLE t%d(a,b,c);", t); in worker_bee()
218 db_execute(db, zFilename, "INSERT INTO t%d VALUES(%d,%d,%d);", in worker_bee()
221 az = db_query(db, zFilename, "SELECT count(*) FROM t%d", t); in worker_bee()
222 db_check(zFilename, "tX size", az, "100", 0); in worker_bee()
223 az = db_query(db, zFilename, "SELECT avg(b) FROM t%d", t); in worker_bee()
224 db_check(zFilename, "tX avg", az, "101", 0); in worker_bee()
225 db_execute(db, zFilename, "DELETE FROM t%d WHERE a>50", t); in worker_bee()
226 az = db_query(db, zFilename, "SELECT avg(b) FROM t%d", t); in worker_bee()
227 db_check(zFilename, "tX avg2", az, "51", 0); in worker_bee()
230 az = db_query(db, zFilename, "SELECT b, c FROM t%d WHERE a=%d", t, i); in worker_bee()
233 db_check(zFilename, "readback", az, z1, z2, 0); in worker_bee()
235 db_execute(db, zFilename, "DROP TABLE t%d;", t); in worker_bee()
238 printf("%s: END\n", zFilename); in worker_bee()