Skip to content

Commit 8249cb7

Browse files
committed
Update
1 parent c66c488 commit 8249cb7

File tree

1 file changed

+1
-1
lines changed
  • text_2_sql/autogen/utils

1 file changed

+1
-1
lines changed

text_2_sql/autogen/utils/sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async def validate_sql_query(
105105
) -> Union[bool | list[dict]]:
106106
"""Validate the SQL query."""
107107
try:
108-
sqlglot.transpile("SELECT foo FROM (SELECT baz FROM t")
108+
sqlglot.transpile(sql_query)
109109
except sqlglot.errors.ParseError as e:
110110
return e.errors
111111
else:

0 commit comments

Comments
 (0)