We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec32a70 commit be305ffCopy full SHA for be305ff
pandas/io/sql.py
@@ -969,13 +969,17 @@ def __init__(
969
raise ValueError("Empty table name specified")
970
971
def _drop_temporary_table(self):
972
+ """Drop a temporary table. Temporary tables are not in a database's meta data
973
+ and need to be dropped hard coded."""
974
if self.schema is None:
975
query = f"DROP TABLE {self.name}"
976
else:
977
query = f"DROP TABLE {self.schema}.{self.name}"
978
self.pd_sql.execute(query)
979
980
def _exists_temporary(self):
981
+ """Check if a temporary table exists. Temporary tables are not in a database's
982
+ meta data. The existence is duck tested by a SELECT statement."""
983
from sqlalchemy.exc import (
984
OperationalError,
985
ProgrammingError,
0 commit comments