Skip to content

Commit 85bab17

Browse files
authored
ci: Escape reserved column name (#190)
1 parent ac3c746 commit 85bab17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/dbapi/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
def all_types_query() -> str:
1717
return (
1818
"select 1 as uint8, "
19-
"-1 as int8, "
19+
"-1 as int_8, " # int8 is a reserved keyword
2020
"257 as uint16, "
2121
"-257 as int16, "
2222
"80000 as uint32, "
@@ -31,7 +31,7 @@ def all_types_query() -> str:
3131
"CAST('2019-07-31 01:01:01' AS DATETIME) as \"datetime\", "
3232
"CAST('2019-07-31 01:01:01.1234' AS TIMESTAMP_EXT(4)) as \"datetime64\", "
3333
'true as "bool",'
34-
'[1,2,3,4] as "array", cast(1231232.123459999990457054844258706536 as '
34+
"[1,2,3,4] as \"array\", cast('1231232.123459999990457054844258706536' as "
3535
'decimal(38,30)) as "decimal", '
3636
"cast(null as int) as nullable"
3737
)
@@ -41,7 +41,7 @@ def all_types_query() -> str:
4141
def all_types_query_description() -> List[Column]:
4242
return [
4343
Column("uint8", int, None, None, None, None, None),
44-
Column("int8", int, None, None, None, None, None),
44+
Column("int_8", int, None, None, None, None, None),
4545
Column("uint16", int, None, None, None, None, None),
4646
Column("int16", int, None, None, None, None, None),
4747
Column("uint32", int, None, None, None, None, None),

0 commit comments

Comments
 (0)