We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d9f487a commit 1b83922Copy full SHA for 1b83922
pandas/io/sql.py
@@ -1159,7 +1159,7 @@ def run_transaction(self):
1159
1160
def execute(self, *args, **kwargs):
1161
"""Simple passthrough to SQLAlchemy connectable"""
1162
- return self.connectable.execution_options(no_parameters=True).execute(
+ return self.connectable.execution_options().execute(
1163
*args, **kwargs
1164
)
1165
@@ -1291,6 +1291,10 @@ def read_query(
1291
read_sql
1292
1293
"""
1294
+ if isinstance(sql, str) and params is None:
1295
+ from sqlalchemy.sql import text
1296
+ sql = text(sql)
1297
+
1298
args = _convert_params(sql, params)
1299
1300
result = self.execute(*args)
0 commit comments