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

Closed
jeremyevans opened this Issue May 1, 2011 · 1 comment

1 participant

@jeremyevans
Owner

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
end

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

Google Code Info:
Issue #: 255
Author: sbfaulk...@gmail.com
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
@jeremyevans
Owner

Thanks for the heads up. Fixed:
http://github.com/jeremyevans/sequel/commit/f9d6d1ab18aec1374d6d95e8659714811c0967eb

Google Code Info:
Author: jeremyev...@gmail.com
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