table_exists? returns true for non-existent table after defining model #280

jeremyevans opened this Issue May 1, 2011 · 1 comment

1 participant


What steps will reproduce the problem?
1. define a model class
2. call table_exists? for the new class
3. observe the return value

(see the included sample code below)

What is the expected output? What do you see instead?

see below... false is expected but true is returned

What version of the product are you using? On what operating system?

2.8.0 with sqlite on OS X

Please provide any additional information below.

run the following code...

require 'sequel'

Sequel.connect 'sqlite://nonexistant.db'

class Dummy < Sequel::Model

raise "table should not exist" if Dummy.table_exists?

Google Code Info:
Issue #: 255
Created On: 2008-12-15T19:08:56.000Z
Closed On: 2008-12-15T21:15:53.000Z

@jeremyevans jeremyevans was assigned May 1, 2011
@jeremyevans jeremyevans closed this May 1, 2011

Thanks for the heads up. Fixed:

Google Code Info:
Created On: 2008-12-15T21:15:53.000Z

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment