<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -18,4 +18,5 @@
  * Updated tests to include new table to support union test
 
 0.7.0
- * Updated dependency versions to get on ActiveRecord 2.x. May not be compatible with Rails versions less than 2.x.
\ No newline at end of file
+ * Updated dependency versions to get on ActiveRecord 2.x. May not be compatible with Rails versions less than 2.x.
+ * Add nonview_tables support to *all* of the adapters (was missing from Postgres and SQLServer)
\ No newline at end of file</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ module ActiveRecord
        true
      end
 
-     def tables(name = nil) #:nodoc:
+     def nonview_tables(name = nil) #:nodoc:
        tables = []
        execute(&quot;SELECT TABLE_NAME FROM USER_TABLES&quot;, name).each { |row| tables &lt;&lt; row[0]  }
        tables</diff>
      <filename>lib/rails_sql_views/connection_adapters/oci_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ module ActiveRecord
        true
      end
 
-     def tables(name = nil) #:nodoc:
+     def nonview_tables(name = nil) #:nodoc:
        tables = []
        execute(&quot;SELECT TABLE_NAME FROM USER_TABLES&quot;, name).each { |row| tables &lt;&lt; row[0]  }
        tables</diff>
      <filename>lib/rails_sql_views/connection_adapters/oracle_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,17 @@ module ActiveRecord
         true
       end
       
+      def nonview_tables(name = nil)
+        q = &lt;&lt;-SQL
+        SELECT table_name, table_type
+          FROM information_schema.tables
+         WHERE table_schema IN (#{schemas})
+           AND table_type = 'BASE_TABLE'
+        SQL
+        
+        query(q, name).map { |row| row[0] }
+      end
+      
       def views(name = nil) #:nodoc:
         q = &lt;&lt;-SQL
         SELECT table_name, table_type</diff>
      <filename>lib/rails_sql_views/connection_adapters/postgresql_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,12 @@ module ActiveRecord
         true
       end
       
+      # Get all of the non-view tables from the currently connected schema
+      def nonview_tables(name = nil)
+        # this is untested
+        select_values(&quot;SELECT table_name FROM information_schema.tables&quot;, name)
+      end
+      
       # Returns all the view names from the currently connected schema.
       def views(name = nil)
         select_values(&quot;SELECT table_name FROM information_schema.views&quot;, name)</diff>
      <filename>lib/rails_sql_views/connection_adapters/sqlserver_adapter.rb</filename>
    </modified>
    <modified>
      <diff>@@ -25,6 +25,7 @@ If you would like to implement an adapter, it should go in lib/rails_sql_views/c
 of the other adapters currently implemented. Every adapter must implement the following methods:
 
   supports_views?
+  nonview_tables(name = nil)
   views(name = nil)
   view_select_statement(view, name=nil)
   </diff>
      <filename>test/README</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f5a2b22f0f9f772a9f5809b6a4201c49ca3bb2cc</id>
    </parent>
  </parents>
  <author>
    <name>Anthony Eden</name>
    <email>anthonyeden@gmail.com</email>
  </author>
  <url>http://github.com/aeden/rails_sql_views/commit/8f9060ff185b5708edcc8a10a33560c94e535021</url>
  <id>8f9060ff185b5708edcc8a10a33560c94e535021</id>
  <committed-date>2008-11-04T12:28:57-08:00</committed-date>
  <authored-date>2008-11-04T12:28:57-08:00</authored-date>
  <message>added nonview_tables where missing. need to get tests running again</message>
  <tree>9234e83c83ac913c11c973e3fd88e628121211fa</tree>
  <committer>
    <name>Anthony Eden</name>
    <email>anthonyeden@gmail.com</email>
  </committer>
</commit>
