Skip to content

Fix table_info() crash on backtick-quoted table names containing dots#656

Merged
adsharma merged 1 commit into
mainfrom
table_info_dot_names
Jul 5, 2026
Merged

Fix table_info() crash on backtick-quoted table names containing dots#656
adsharma merged 1 commit into
mainfrom
table_info_dot_names

Conversation

@adsharma

@adsharma adsharma commented Jul 5, 2026

Copy link
Copy Markdown
Contributor

Fixes: LadybugDB/explorer#35

When a table was created with a backtick-quoted name containing a dot (e.g. a.b), CALL table_info('a.b') would split the name on '.' and try to resolve 'a' as a database name, throwing:

  Runtime exception: No database named a.

The fix: first check whether the full input string exists as a local table name in the catalog. Only if that fails, split on '.' and try as a database.table reference.

Added regression test (issue9.test).

@adsharma adsharma force-pushed the table_info_dot_names branch 2 times, most recently from c0f0c18 to d2fce47 Compare July 5, 2026 16:10
When a table was created with a backtick-quoted name containing a dot
(e.g. `a.b`), CALL table_info('a.b') would split the name on '.' and
try to resolve 'a' as a database name, throwing:
  Runtime exception: No database named a.

The fix: first check whether the full input string exists as a local
table name in the catalog. Only if that fails, split on '.' and try as
a database.table reference.

Added regression test (issue9.test).
@adsharma adsharma force-pushed the table_info_dot_names branch from d2fce47 to 0c042d6 Compare July 5, 2026 16:30
@adsharma adsharma merged commit 1bd3ac5 into main Jul 5, 2026
4 checks passed
@adsharma adsharma deleted the table_info_dot_names branch July 5, 2026 16:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

table_info (and node-label matching) can't resolve table names that contain a dot

1 participant