Skip to content

Commit

Permalink
SNOW-74190: fixed comments query
Browse files Browse the repository at this point in the history
  • Loading branch information
smtakeda authored and ankit-bhatnagar167 committed Apr 9, 2019
1 parent d873f00 commit 3741cd0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion snowdialect.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,8 @@ def _get_columns_for_tables(self, connection, schema, **kw):
ic.numeric_scale,
ic.is_nullable,
ic.column_default,
ic.is_identity
ic.is_identity,
ic.comment
FROM information_schema.columns ic
WHERE ic.table_schema=%(table_schema)s
"""
Expand Down
2 changes: 1 addition & 1 deletion test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -969,7 +969,7 @@ def test_copy_into_location(engine_testaccount, sql_compiler):
food_items.drop(engine_testaccount)

def test_comments(engine_testaccount):
table_name = ''.join(random.choice(string.ascii_uppercase + string.digits) for _ in range(5))
table_name = ''.join(random.choice(string.ascii_uppercase) for _ in range(5))
try:
engine_testaccount.execute("create table public.{} (\"col1\" text);".format(table_name))
engine_testaccount.execute("alter table public.{} alter \"col1\" comment 'this is my comment'".format(table_name))
Expand Down

0 comments on commit 3741cd0

Please sign in to comment.