From 2afdf01e5c354bdc49b1d1329333a01b7012134b Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Tue, 4 Jan 2005 11:00:48 +0000 Subject: Minor tweak for readability git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/lib/active_record/vendor/db2.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord/lib') 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 -- cgit v1.2.3