We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4c6861 commit ebd81f3Copy full SHA for ebd81f3
duckdb_engine/__init__.py
@@ -223,8 +223,10 @@ def get_view_names(
223
include: Optional[Any] = None,
224
**kw: Any,
225
) -> Any:
226
- s = "SELECT table_name FROM information_schema.tables WHERE table_type='VIEW' and table_schema=?"
227
- rs = connection.execute(text(s), schema if schema is not None else "main")
+ s = "SELECT table_name FROM information_schema.tables WHERE table_type='VIEW' and table_schema=:schema_name"
+ rs = connection.execute(
228
+ text(s), {"schema_name": schema if schema is not None else "main"}
229
+ )
230
231
return [row[0] for row in rs]
232
0 commit comments