Skip to content

Commit

Permalink
Revert "Update src/pgduckdb_hooks.cpp"
Browse files Browse the repository at this point in the history
This reverts commit 488e2cf.
  • Loading branch information
JelteF committed Feb 11, 2025
1 parent 488e2cf commit a358986
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/pgduckdb_hooks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,14 @@ DuckdbExplainOneQueryHook(Query *query, int cursorOptions, IntoClause *into, Exp

static bool
IsOutdatedMotherduckCatalogErrcode(int error_code) {
return error_code == ERRCODE_UNDEFINED_COLUMN ||
error_code == ERRCODE_UNDEFINED_SCHEMA ||
error_code == ERRCODE_UNDEFINED_TABLE
switch (error_code) {
case ERRCODE_UNDEFINED_COLUMN:
case ERRCODE_UNDEFINED_SCHEMA:
case ERRCODE_UNDEFINED_TABLE:
return true;
default:
return false;
}
}

static void
Expand Down

0 comments on commit a358986

Please sign in to comment.