lib/libis/services/oracle_client.rb in libis-services-0.1.12 vs lib/libis/services/oracle_client.rb in libis-services-0.1.13
- old
+ new
@@ -29,10 +29,10 @@
!oci.non_blocking?
end
def call(procedure, parameters = [])
params = ''
- params = "'" + parameters.join("','") + "'" if parameters and parameters.size > 0
+ params = "'" + parameters.map(&:to_s).join("','") + "'" if parameters and parameters.size > 0
oci.exec("call #{procedure}(#{params})")
end
def execute(statement, *bindvars, &block)
oci.exec(statement, *bindvars, &block)