name The single-component name of one of Exim's database files.
flags Either O_RDONLY or O_RDWR, indicating the type of open required;
O_RDWR implies "create if necessary"
+XXX this is a mess. hintsdb.h has grown lots of code expecting O_CREAT
+XXX with the obvious semantics, and not that described above.
dbblock Points to an open_db block to be filled in.
lof If TRUE, write to the log for actual open failures (locking failures
are always logged).
sqlite3_busy_timeout(dbp, 5000);
if (flags & O_CREAT)
ret == sqlite3_exec(dbp,
- "CREATE TABLE tbl (ky TEXT PRIMARY KEY, dat BLOB);", NULL, NULL, NULL);
+ "CREATE TABLE IF NOT EXISTS tbl (ky TEXT PRIMARY KEY, dat BLOB);",
+ NULL, NULL, NULL);
}
//else
// fprintf(stderr, "sqlite3_open_v2: %s\n", sqlite3_errmsg(dbp));