We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 047b471 commit cc62a61Copy full SHA for cc62a61
pandas/io/sql.py
@@ -1159,9 +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(
1163
- *args, **kwargs
1164
- )
+ return self.connectable.execution_options().execute(*args, **kwargs)
1165
1166
def read_table(
1167
self,
@@ -1291,6 +1289,11 @@ def read_query(
1291
1289
read_sql
1292
1290
1293
"""
+ if isinstance(sql, str) and params is None:
+ from sqlalchemy.sql import text
1294
+
1295
+ sql = text(sql)
1296
1297
args = _convert_params(sql, params)
1298
1299
result = self.execute(*args)
0 commit comments