Skip to content

Commit 9024932

Browse files
committed
Merge branch '60-stable'
2 parents 79b488a + cc6a5e7 commit 9024932

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

lib/arjdbc/postgresql/oid_types.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def load_additional_types(type_map, oid = nil) # :nodoc:
213213
if oid
214214
if oid.is_a? Numeric || oid.match(/^\d+$/)
215215
# numeric OID
216-
query += "WHERE t.oid::integer = %s" % oid
216+
query += "WHERE t.oid = %s" % oid
217217

218218
elsif m = oid.match(/"?(\w+)"?\."?(\w+)"?/)
219219
# namespace and type name
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if ActiveRecord::Base.connection.database_version < 90500
2+
exclude :test_pretty_print, 'fails with PG < 9.5'
3+
end

0 commit comments

Comments
 (0)