diff options
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/vendor/db2.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/vendor/db2.rb b/activerecord/lib/active_record/vendor/db2.rb index f0ec847d72..42171beda8 100644 --- a/activerecord/lib/active_record/vendor/db2.rb +++ b/activerecord/lib/active_record/vendor/db2.rb @@ -8,7 +8,7 @@ module DB2 def handle() @handle; end def check_rc(rc) - if rc != SQL_SUCCESS and rc != SQL_SUCCESS_WITH_INFO and rc != SQL_NO_DATA_FOUND + if ![SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA_FOUND].include?(rc) rec = 1 msg = '' loop do |