Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Minor tweak for readability

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@332 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 2afdf01e5c354bdc49b1d1329333a01b7012134b 1 parent 6f71155
@dhh dhh authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  activerecord/lib/active_record/vendor/db2.rb
View
2  activerecord/lib/active_record/vendor/db2.rb
@@ -8,7 +8,7 @@ def free() SQLFreeHandle(@handle_type, @handle); end
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
Please sign in to comment.
Something went wrong with that request. Please try again.