- Notifications
You must be signed in to change notification settings - Fork126
Added support for tinyint to _parse.py#315
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -111,7 +111,7 @@ def test_numeric_renders_as_decimal_with_precision(self): | ||
| ) | ||
| def test_numeric_renders_as_decimal_with_precision_and_scale(self): | ||
| self._assert_compiled_value_explicit( | ||
Contributor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I found during testing that this test case would always pass because prefixing an assertion with | ||
| sqlalchemy.types.Numeric(10, 2), "DECIMAL(10, 2)" | ||
| ) | ||
| @@ -146,15 +146,16 @@ def test_bare_uppercase_types_compile(self, type_, expected): | ||
| if isinstance(type_, type(sqlalchemy.types.ARRAY)): | ||
| # ARRAY cannot be initialised without passing an item definition so we test separately | ||
| # I preserve it in the uppercase_type_map for clarity | ||
| assert True | ||
| else: | ||
| self._assert_compiled_value(type_, expected) | ||
| def test_array_string_renders_as_array_of_string(self): | ||
| """SQLAlchemy's ARRAY type requires an item definition. And their docs indicate that they've only tested | ||
| it with Postgres since that's the only first-class dialect with support for ARRAY. | ||
| https://docs.sqlalchemy.org/en/20/core/type_basics.html#sqlalchemy.types.ARRAY | ||
| """ | ||
| self._assert_compiled_value_explicit( | ||
| sqlalchemy.types.ARRAY(sqlalchemy.types.String), "ARRAY<STRING>" | ||
| ) | ||