Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_frame fails to replace table (io.sql) #4033

Closed
jhubele opened this issue Jun 25, 2013 · 1 comment
Closed

write_frame fails to replace table (io.sql) #4033

jhubele opened this issue Jun 25, 2013 · 1 comment
Labels
Duplicate Report Duplicate issue or pull request

Comments

@jhubele
Copy link

jhubele commented Jun 25, 2013

For the option if_exists='replace' in write_frame the table is dropped but not re-created.
Simple error in the logic:

#create or drop-recreate if necessary
create = None
if exists and if_exists == 'replace':
    create = "DROP TABLE %s" % name
elif not exists:
    create = get_schema(frame, name, flavor)

if create is not None:
    cur = con.cursor()
    cur.execute(create)
    cur.close()
@jreback
Copy link
Contributor

jreback commented Jun 29, 2013

closing in favor of #2971

@jreback jreback closed this as completed Jun 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Duplicate Report Duplicate issue or pull request
Projects
None yet
Development

No branches or pull requests

2 participants