Permalink
Browse files

Add a default 'prefetch_rows' value for oracle adapter

  • Loading branch information...
1 parent 4c1affb commit baefc7e0c5a7ae4ce653b15eacf4b5a2ea32566e @andrewhr andrewhr committed Dec 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit baefc7e

Please sign in to comment.