Skip to content

Add a prefetch default value for Oracle adapter #592

Merged
merged 1 commit into from Dec 11, 2012
View
2 lib/sequel/adapters/oracle.rb
@@ -37,7 +37,7 @@ def connect(server)
dbname = opts[:host]
end
conn = OCI8.new(opts[:user], opts[:password], dbname, opts[:privilege])
- conn.prefetch_rows = typecast_value_integer(opts[:prefetch_rows]) if opts[:prefetch_rows]
+ conn.prefetch_rows = typecast_value_integer(opts.fetch(:prefetch_rows, 100))
conn.autocommit = true
conn.non_blocking = true
Something went wrong with that request. Please try again.