diff --git a/setup.py b/setup.py index 02c053c..2608455 100644 --- a/setup.py +++ b/setup.py @@ -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", diff --git a/tests/test_query.py b/tests/test_query.py index e8f9c13..d976af8 100644 --- a/tests/test_query.py +++ b/tests/test_query.py @@ -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,