Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Add a default 'prefetch_rows' value for oracle adapter

  • Loading branch information...
commit baefc7e0c5a7ae4ce653b15eacf4b5a2ea32566e 1 parent 4c1affb
@andrewhr authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/sequel/adapters/oracle.rb
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
Please sign in to comment.
Something went wrong with that request. Please try again.