Skip to content

Commit

Permalink
FIX: clarify warning in read_sql_query() (pandas-dev#46045)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameslamb authored Feb 22, 2022
1 parent b5ce22c commit 59ab400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pandas/io/sql.py
Original file line number Diff line number Diff line change
Expand Up @@ -748,9 +748,9 @@ def pandasSQL_builder(con, schema: str | None = None):
return SQLDatabase(con, schema=schema)

warnings.warn(
"pandas only support SQLAlchemy connectable(engine/connection) or"
"database string URI or sqlite3 DBAPI2 connection"
"other DBAPI2 objects are not tested, please consider using SQLAlchemy",
"pandas only supports SQLAlchemy connectable (engine/connection) or "
"database string URI or sqlite3 DBAPI2 connection. "
"Other DBAPI2 objects are not tested. Please consider using SQLAlchemy.",
UserWarning,
)
return SQLiteDatabase(con)
Expand Down

0 comments on commit 59ab400

Please sign in to comment.