Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions pandasql/sqldf.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import inspect
from contextlib import contextmanager
from pandas.io.sql import to_sql, read_sql
from sqlalchemy import create_engine
from sqlalchemy import create_engine, text
import re
from warnings import catch_warnings, filterwarnings
from sqlalchemy.exc import DatabaseError, ResourceClosedError
Expand Down Expand Up @@ -89,7 +89,7 @@ def conn(self):

def _init_connection(self, conn):
if self.engine.name == 'postgresql':
conn.execute('set search_path to pg_temp')
conn.execute(text('set search_path to pg_temp'))

def _set_text_factory(self, dbapi_con, connection_record):
dbapi_con.text_factory = str
Expand Down