From 7148a5d8c6b1f5172c99e944d461d61e7fc4e575 Mon Sep 17 00:00:00 2001 From: Paul Kulchenko Date: Mon, 16 Jan 2023 10:37:18 -0800 Subject: [PATCH] Fix mislabeled constant in redbean SQLite code --- tool/net/lsqlite3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/net/lsqlite3.c b/tool/net/lsqlite3.c index 55f284288..190da1e58 100644 --- a/tool/net/lsqlite3.c +++ b/tool/net/lsqlite3.c @@ -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_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); return SQLITE_OK;