dolthub / dolthub-issues

Issues for dolthub.com
https://dolthub.com
4 stars 1 forks source link

query error: table with name tablename already exists on empty db #445

Open liuliu-dev opened 1 year ago

liuliu-dev commented 1 year ago

workspace link, click rerun query and then will see the error https://dolthub.awsdev.ld-corp.com/repositories/liuliu/test-empty/workspaces/5f9eed63-d152-4ac4-b043-327b2d85b83e?q=CREATE+TABLE+tablename+%28+++pk+INT%2C+++col1+VARCHAR%28255%29%2C+++PRIMARY+KEY+%28pk%29+%29%3B

hard to repro it, this is how i get there:

  1. create a db called test-empty, run a query to create a table named tablename, then delete the db
  2. create another db with same name test-empty, run query to create a table tablename in this new db, the error showed up.