Skip to content

Commit

Permalink
Do not lookup for remote alias if table name is prefixed by comdb2, i…
Browse files Browse the repository at this point in the history
….e. it is a system table, in sqlite table lookup.

Signed-off-by: Dorin Hogea <dhogea@bloomberg.net>
  • Loading branch information
dorinhogea committed Dec 10, 2024
1 parent 9dc6829 commit 1a3ec85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sqlite/src/build.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ Table *sqlite3FindTable(sqlite3 *db, const char *zName, const char *zDatabase){
/* if we did not find the table and we don't have a database name
** check to see if this is an actual alias
*/
if( !zDatabase && !db->init.busy && !skipAlias){
if( !zDatabase && !db->init.busy && !skipAlias && strncasecmp(zName, "comdb2", 6)){
/* NOTE: zDatabase is NOT null if we already looked up a foreign
** db and retried, so this code doesn't run twice
** NOTE2: we can skip this if we are initializing an engine
Expand Down

0 comments on commit 1a3ec85

Please sign in to comment.