Skip to content

Commit 6981596

Browse files
author
shirzady1934
committed
Revert "issue 1166 Update test to use SQLAlchemy 2.0 compatible select statement"
This reverts commit f5f0279.
1 parent 8f5e207 commit 6981596

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/test_io.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,12 +1415,9 @@ class Temp(Base):
14151415

14161416
Session = sqlalchemy.orm.sessionmaker(engine)
14171417
with Session() as session:
1418-
stmt = sqlalchemy.select(Temp.quantity)
1419-
pd.read_sql(stmt, session.connection())
1420-
1421-
# pd.read_sql(
1422-
# #session.query(Temp.quantity).statement, session.connection()
1423-
# )
1418+
pd.read_sql(
1419+
session.query(Temp.quantity).statement, session.connection()
1420+
)
14241421

14251422

14261423
def test_sqlalchemy_text() -> None:

0 commit comments

Comments
 (0)