lib/pg-reindex.rb in pg_reindex-0.1.3 vs lib/pg-reindex.rb in pg_reindex-0.1.4

- old
+ new

@@ -80,10 +80,10 @@ res = @conn.exec <<-SQL SELECT proname FROM pg_catalog.pg_namespace n JOIN pg_catalog.pg_proc p ON pronamespace = n.oid WHERE nspname = 'public' and proname = 'swap_for_pkey' SQL - res.values.size == 1 + res.count == 1 end def swap_for_pkey_sql <<-SQL CREATE OR REPLACE FUNCTION swap_for_pkey(text,text,text) returns integer \ No newline at end of file