public
Created

  • Download Gist
gistfile1.diff
Diff
1 2 3 4 5 6 7 8 9 10 11 12
diff --git a/lib/arjdbc/postgresql/adapter.rb b/lib/arjdbc/postgresql/adapter.rb
index 621ee5a..39780ca 100644
--- a/lib/arjdbc/postgresql/adapter.rb
+++ b/lib/arjdbc/postgresql/adapter.rb
@@ -29,6 +29,7 @@ module ::ArJdbc
def extract_limit(sql_type)
case sql_type
when /^bigint/i; 8
+ when /^integer/i; 4
when /^smallint/i; 2
when /^(bool|text|date|time|bytea)/i; nil # ACTIVERECORD_JDBC-135,139
else super

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.