Skip to content

Commit

Permalink
Merge pull request #65 from barakalon/reenable-test
Browse files Browse the repository at this point in the history
chore: update sqlglot version and re-enable test.
  • Loading branch information
cecilycarver authored Jan 21, 2025
2 parents c65c0cb + 65d24a5 commit 865b471
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
license="MIT",
packages=find_packages(include=["mysql_mimic", "mysql_mimic.*"]),
python_requires=">=3.6",
install_requires=["sqlglot>=18.6.0"],
install_requires=["sqlglot"],
extras_require={
"dev": [
"aiomysql",
Expand Down
10 changes: 4 additions & 6 deletions tests/test_query.py
Original file line number Diff line number Diff line change
Expand Up @@ -778,12 +778,10 @@ async def test_describe_select(
}
],
),
# Re-enable this test after sqlglot releases fix.
# PR with fix: https://github.com/tobymao/sqlglot/pull/4574
# (
# "select database(), schema(), left(user(),instr(concat(user(),'@'), '@')-1)",
# [{"DATABASE()": None, "SCHEMA()": None, "_col_2": "levon_helm"}],
# ),
(
"select database(), schema(), left(user(),instr(concat(user(),'@'), '@')-1)",
[{"DATABASE()": None, "SCHEMA()": None, "_col_2": "levon_helm"}],
),
(queries.DATA_GRIP_PARAMETERS, []),
(
queries.DATA_GRIP_TABLES,
Expand Down

0 comments on commit 865b471

Please sign in to comment.