Skip to content

Instantly share code, notes, and snippets.

@nicksieger
Created June 15, 2011 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicksieger/1028027 to your computer and use it in GitHub Desktop.
Save nicksieger/1028027 to your computer and use it in GitHub Desktop.
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