mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
WS
This commit is contained in:
parent
607b6501ed
commit
a8f74b14f1
1 changed files with 9 additions and 9 deletions
|
@ -71,9 +71,9 @@ static int ps_sqlite_valid_key(const char *key)
|
|||
|
||||
PS_OPEN_FUNC(sqlite)
|
||||
{
|
||||
char *filepath;
|
||||
char *filepath;
|
||||
char *errmsg = NULL;
|
||||
int spath_len, sname_len, fp_len;
|
||||
int spath_len, sname_len, fp_len;
|
||||
sqlite *db;
|
||||
|
||||
/* TODO: do we need a safe_mode check here? */
|
||||
|
@ -86,14 +86,14 @@ PS_OPEN_FUNC(sqlite)
|
|||
|
||||
/* allow up to 1 minute when busy */
|
||||
sqlite_busy_timeout(db, 60000);
|
||||
|
||||
/* This will fail if the table already exists, but that's not a big problem. I'm
|
||||
unclear as to how to check for a table's existence in SQLite -- that would be better here. */
|
||||
sqlite_exec(db, CREATE_TBL_QUERY, NULL, NULL, NULL);
|
||||
|
||||
PS_SET_MOD_DATA(db);
|
||||
|
||||
return SUCCESS;
|
||||
/* This will fail if the table already exists, but that's not a big problem. I'm
|
||||
unclear as to how to check for a table's existence in SQLite -- that would be better here. */
|
||||
sqlite_exec(db, CREATE_TBL_QUERY, NULL, NULL, NULL);
|
||||
|
||||
PS_SET_MOD_DATA(db);
|
||||
|
||||
return SUCCESS;
|
||||
}
|
||||
|
||||
PS_CLOSE_FUNC(sqlite)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue