Permalink
Browse files

Merge pull request #1636 from metaskills/upstream/3-1-stable

Allow the connection pool's #table_exists? method to give the connections
  • Loading branch information...
tenderlove committed Jun 17, 2011
2 parents da25aa5 + c791e2d commit ba1b88fda6304f4e881a5b286fdb290c8477f155
@@ -119,6 +119,7 @@ def table_exists?(name)
with_connection do |conn|
conn.tables.each { |table| @tables[table] = true }
+ @tables[name] = true if !@tables.key?(name) && conn.table_exists?(name)
end
@tables.key? name

0 comments on commit ba1b88f

Please sign in to comment.