Fix mislabeled constant in redbean SQLite code

This commit is contained in:
Paul Kulchenko 2023-01-16 10:37:18 -08:00
parent be3e109309
commit 7148a5d8c6

View file

@ -1218,7 +1218,7 @@ static int db_wal_hook_callback(void *user, sqlite3 *dbh, char const *dbname, in
lua_pushstring(L, dbname); /* hook database name */ lua_pushstring(L, dbname); /* hook database name */
lua_pushinteger(L, pnum); lua_pushinteger(L, pnum);
if (lua_pcall(L, 3, 0, 0) != SQLITE_OK) return lua_error(L); if (lua_pcall(L, 3, 0, 0) != LUA_OK) return lua_error(L);
lua_settop(L, top); lua_settop(L, top);
return SQLITE_OK; return SQLITE_OK;