Commit 36d0a5fc authored by ARCHER's avatar ARCHER

changed tmp table name

parent 79b310fd
......@@ -185,7 +185,7 @@ def to_sql(df,*args,**kwargs):
# create a *fake* temporary table like destination table, but empty
# we can't create a real temporary table because they are not visible to to_sql_legacy
# so we will have to drop it
tmp_table = "_to_postgis_tmp__%s_%s" % (''.join(random.choice(string.ascii_letters) for i in range(5)), table )
tmp_table = "_to_sql_tmp_sql__%s_%s" % (''.join(random.choice(string.ascii_letters) for i in range(5)), table )
con.execute("""
DROP TABLE IF EXISTS "%s";
CREATE TABLE "%s" (
......@@ -201,7 +201,7 @@ def to_sql(df,*args,**kwargs):
elif kwargs['temp_method'] == 'pandas':
#will use a temporary table as a buffer ( for upsert copy )
pandas_engine = pd.io.sql.pandasSQL_builder(con,meta=metadata)
tmp_table = "_%s" % table
tmp_table = tmp_table = "_to_sql_tmp_pandas__%s_%s" % (''.join(random.choice(string.ascii_letters) for i in range(5)), table )
if 'dtype' in kwargs:
dtype=kwargs['dtype']
else:
......
from setuptools import setup
setup(name='geopandas_postgis',
setup(name='geopandas-postgis',
description='postgis extensions for geopandas',
url='https://gitlab.ifremer.fr/cyclobs/geopandas_postgis.git',
author = "Olivier Archer",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment