Skip to content

Commit

Permalink
chore(deps): bump deps (#10718)
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud authored Jan 24, 2025
1 parent 470e6fd commit 5a49756
Show file tree
Hide file tree
Showing 4 changed files with 223 additions and 219 deletions.
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 8 additions & 1 deletion ibis/backends/mssql/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,13 @@ def _get_schema_using_query(self, query: str) -> sch.Schema:
# us to pre-filter the columns we want back.
# The syntax is:
# `sys.dm_exec_describe_first_result_set(@tsql, @params, @include_browse_information)`
#
# Yes, this *is* a SQL injection risk, but it's not clear how to avoid
# that since we allow users to pass arbitrary SQL.
#
# SQLGlot has a bug that forces capitalization of
# `dm_exec_describe_first_result_set`, so we can't even use its builder
# APIs. That doesn't really solve the injection problem though.
query = f"""
SELECT
name,
Expand All @@ -330,7 +337,7 @@ def _get_schema_using_query(self, query: str) -> sch.Schema:
error_message
FROM sys.dm_exec_describe_first_result_set(N{tsql}, NULL, 0)
ORDER BY column_ordinal
"""
""" # noqa: S608
with self._safe_raw_sql(query) as cur:
rows = cur.fetchall()

Expand Down
34 changes: 17 additions & 17 deletions requirements-dev.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5a49756

Please sign in to comment.