# File lib/dbd/mysql/database.rb, line 130
130:         def initialize(handle, attr)
131:             super
132:             # check server version to determine transaction capability
133:             ver_str = @handle.get_server_info
134:             major, minor, teeny = ver_str.split(".")
135:             teeny.sub!(/\D*$/, "")  # strip any non-numeric suffix if present
136:             server_version = major.to_i*10000 + minor.to_i*100 + teeny.to_i
137:             # It's not until 3.23.17 that SET AUTOCOMMIT,
138:             # BEGIN, COMMIT, and ROLLBACK all are available
139:             @have_transactions = (server_version >= 32317)
140:             # assume that the connection begins in AutoCommit mode
141:             @attr['AutoCommit'] = true
142:             @mutex = Mutex.new 
143:         end