aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/oracle.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/arel/visitors/oracle.rb')
-rw-r--r--lib/arel/visitors/oracle.rb8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/arel/visitors/oracle.rb b/lib/arel/visitors/oracle.rb
index 00572213e6..ecb157f8bc 100644
--- a/lib/arel/visitors/oracle.rb
+++ b/lib/arel/visitors/oracle.rb
@@ -96,8 +96,12 @@ module Arel
array = []
i = 0
string.split(',').each do |part|
- array[i] ||= ""
- array[i] << part
+ if array[i]
+ array[i] << ',' << part
+ else
+ # to ensure that array[i] will be String and not Arel::Nodes::SqlLiteral
+ array[i] = '' << part
+ end
i += 1 if array[i].count('(') == array[i].count(')')
end
array