lib/og/store/psql.rb in og-0.26.0 vs lib/og/store/psql.rb in og-0.27.0
- old
+ new
@@ -3,11 +3,15 @@
rescue Object => ex
Logger.error 'Ruby-PostgreSQL bindings are not installed!'
Logger.error ex
end
-class PGconn
+#--
+# Customize to make more compatible with Og.
+#++
+
+class PGconn # :nodoc: all
# Lists all the tables within the database.
def list_tables
begin
r = self.exec "SELECT c.relname FROM pg_catalog.pg_class c LEFT JOIN pg_catalog.pg_namespace n ON n.oid = c.relnamespace WHERE c.relkind='r' AND n.nspname NOT IN ('pg_catalog', 'pg_toast') AND pg_catalog.pg_table_is_visible(c.oid)"
@@ -114,14 +118,16 @@
end
require 'og/store/sql'
+#--
# Customize the standard postgres resultset to make
# more compatible with Og.
+#++
-class PGresult
+class PGresult # :nodoc: all
def blank?
0 == num_tuples
end
def next
@@ -819,8 +825,8 @@
end
end
# * George Moschovitis <gm@navel.gr>
+# * Rob Pitt <rob@motionpath.com>
# * Michael Neumann <mneumann@ntecs.de>
# * Ysabel <deb@ysabel.org>
-# * Rob Pitt <rob@motionpath.com>