Skip to content

Commit

Permalink
date pyodbc
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelleArk committed Mar 4, 2023
1 parent 6cd91b9 commit 3ef5902
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/functional/adapter/test_constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,8 @@ def data_types(self, int_type, schema_int_type, string_type):
['array("1","2","3")', "string", string_type],
['array(1,2,3)', "string", string_type],
["6.45", "decimal", "DECIMAL"],
# TODO: test__constraints_correct_column_data_type isn't able to run the following statements in create table statements with pyodbc
# ["cast('2019-01-01' as date)", "date", "DATE"],
# ["cast('2019-01-01' as timestamp)", "date", "DATE"],
["DATE'2020-12-31'", "date", "DATE"],
# ["TIMESTAMP'2020-12-31'", "datetime", "DATETIME"],
]


Expand Down Expand Up @@ -101,8 +100,8 @@ def data_types(self, int_type, schema_int_type, string_type):
["true", "boolean", "BOOLEAN_TYPE"],
['array("1","2","3")', "array<string>", "ARRAY_TYPE"],
['array(1,2,3)', "array<int>", "ARRAY_TYPE"],
["cast('2019-01-01' as date)", "date", "DATE_TYPE"],
["cast('2019-01-01' as timestamp)", "timestamp", "TIMESTAMP_TYPE"],
["DATE'2020-12-31'", "date", "DATE_TYPE"],
["TIMESTAMP'2020-12-31'", "timestamp", "TIMESTAMP_TYPE"],
["cast(1.0 AS DECIMAL(4, 2))", "decimal", "DECIMAL_TYPE"],
]

Expand Down

0 comments on commit 3ef5902

Please sign in to comment.