Skip to content

@nicksieger /gist:1028027
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.