Skip to content

Commit

Permalink
luasql: readded SQLITE_OPEN_SHAREDCACHE, refs #1010
Browse files Browse the repository at this point in the history
  • Loading branch information
rmarquis committed Mar 8, 2017
1 parent 10424c5 commit 1bfae65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/luasql/ls_sqlite3.c
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ static int env_connect(lua_State *L)
#if SQLITE_VERSION_NUMBER > 3006013
if (strstr(sourcename, ":memory:")) /* TODO: rework this and get/add param 'flag' for sqlite3_open_v2 - see TODO below */
{
res = sqlite3_open_v2(sourcename, &conn, SQLITE_OPEN_READWRITE | SQLITE_OPEN_MEMORY, NULL);
res = sqlite3_open_v2(sourcename, &conn, SQLITE_OPEN_READWRITE | SQLITE_OPEN_MEMORY | SQLITE_OPEN_SHAREDCACHE, NULL);
}
else
{
Expand Down

0 comments on commit 1bfae65

Please sign in to comment.