Skip to content

Commit

Permalink
Merge pull request #5 from ydb-platform/pragra_to_execute_scheme
Browse files Browse the repository at this point in the history
Add prefix pragma to scheme queries
  • Loading branch information
vgvoleg authored Nov 2, 2024
2 parents d4c317c + 754cab0 commit 3460821
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ydb_dbapi/cursors.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ def execute_scheme(
) -> None:
self._raise_if_closed()

query = self._append_table_path_prefix(query)

self._stream = self._execute_generic_query(
query=query, parameters=parameters
)
Expand Down Expand Up @@ -374,6 +376,8 @@ async def execute_scheme(
) -> None:
self._raise_if_closed()

query = self._append_table_path_prefix(query)

self._stream = await self._execute_generic_query(
query=query, parameters=parameters
)
Expand Down

0 comments on commit 3460821

Please sign in to comment.