Closed
Description
I am unable to run read_sql
against a PostgreSQL database with the current master branch. This error only happens with master. If I switch back to pandas 0.13.1
(stable) everything works again.
For reference, I am using psycopg2 2.5.2
from pip install
.
Below is some example code:
# Connect to the database
host = 'some.remote.host.net'
database = 'some_remote_database'
port = '54321'
username = 'josh'
my_query = 'select item_uid from db.items as item\nwhere item.end_date > (current_date + 1);'
connection = pg.connect(host=host, dbname=database, port=port, user=username)
my_dataframe = psql.read_sql(my_query, connection)
The error that I get is:
DatabaseError: Execution failed on sql: SELECT name FROM sqlite_master WHERE type='table'
AND name='select item_uid from db.items as item\nwhere item.end_date > (current_date + 1);'
I get the same error with read_frame