Skip to content

Commit

Permalink
test(sql): quote table and column identifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
IndexSeek committed Aug 24, 2024
1 parent 1f0a63a commit 8c0a4b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ibis/backends/tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1764,7 +1764,7 @@ def test_cross_database_join(con_create_database, monkeypatch):
)
def test_insert_into_table_missing_columns(con):
table_name = gen_name("table")
ct_sql = f"CREATE TABLE {table_name} (a INT DEFAULT 1, b VARCHAR(10));"
ct_sql = f'CREATE TABLE "{table_name}" ("a" INT DEFAULT 1, "b" VARCHAR(10));'
sg_expr = sg.parse_one(ct_sql, read="duckdb")
con.raw_sql(sg_expr.sql(dialect=con.dialect))
con.insert(table_name, [{"b": "hello"}])
Expand Down

0 comments on commit 8c0a4b8

Please sign in to comment.