Created
June 15, 2011 20:27
-
-
Save nicksieger/1028027 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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