Skip to content

Commit f5f0279

Browse files
author
shirzady1934
committed
issue 1166 Update test to use SQLAlchemy 2.0 compatible select statement
1 parent f6f7bb0 commit f5f0279

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

tests/test_io.py

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

14161416
Session = sqlalchemy.orm.sessionmaker(engine)
14171417
with Session() as session:
1418-
pd.read_sql(
1419-
session.query(Temp.quantity).statement, session.connection()
1420-
)
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+
# )
14211424

14221425

14231426
def test_sqlalchemy_text() -> None:

0 commit comments

Comments
 (0)