Return error from vtable cursor open instead of ignoring it

This commit is contained in:
Yasuhiro Matsumoto
2026-07-13 10:15:49 +09:00
parent 78710fc089
commit 5ce75d7cbd

View File

@@ -113,6 +113,9 @@ uintptr_t goVOpen(void *pVTab, char **pzErr);
static int cXOpen(sqlite3_vtab *pVTab, sqlite3_vtab_cursor **ppCursor) {
void *vTabCursor = (void *)goVOpen(((goVTab*)pVTab)->vTab, &(pVTab->zErrMsg));
if (!vTabCursor) {
return SQLITE_ERROR;
}
goVTabCursor *pCursor = (goVTabCursor *)sqlite3_malloc(sizeof(goVTabCursor));
if (!pCursor) {
return SQLITE_NOMEM;