Browse files

- added missing tables_with_views_included

  • Loading branch information...
1 parent c575fa0 commit 1051eeb3b7c6c874485d3126dc01d4ee62102606 bsjaekel committed Apr 18, 2011
Showing with 5 additions and 3 deletions.
  1. +5 −3 lib/plain_view/connection_adapters/mysql2_adapter.rb
View
8 lib/plain_view/connection_adapters/mysql2_adapter.rb
@@ -19,9 +19,11 @@ def supports_views?
end
def base_tables(name = nil) #:nodoc:
- tables = []
- execute("SHOW FULL TABLES WHERE TABLE_TYPE='BASE TABLE'").each{|row| tables << row[0]}
- tables
+ execute("SHOW FULL TABLES WHERE TABLE_TYPE='BASE TABLE'").collect{|row| row[0]}
+ end
+
+ def tables_with_views_included(name = nil)
+ execute("SHOW FULL TABLES").collect {|row| row[0]}
end
alias nonview_tables base_tables

0 comments on commit 1051eeb

Please sign in to comment.