Skip to content

Commit e876377

Browse files
committed
Merge pull request #401 from simi/revert_warning
Revert "make sure write_timeout and local_infile ivars are setup to avoid warnings.
2 parents 16dcb71 + 89c3bae commit e876377

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/mysql2/client.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module Mysql2
22
class Client
3-
attr_reader :query_options, :read_timeout, :write_timeout, :local_infile
3+
attr_reader :query_options, :read_timeout
44
@@default_query_options = {
55
:as => :hash, # the type of object you want each row back as; also supports :array (an array of values)
66
:async => false, # don't wait for a result after sending the query, you'll have to monitor the socket yourself then eventually call Mysql2::Client#async_result
@@ -16,8 +16,6 @@ class Client
1616
def initialize(opts = {})
1717
opts = Mysql2::Util.key_hash_as_symbols( opts )
1818
@read_timeout = nil
19-
@write_timeout = nil
20-
@local_infile = nil
2119
@query_options = @@default_query_options.dup
2220
@query_options.merge! opts
2321

0 commit comments

Comments
 (0)