Sha256: b7502776547338a1be2e496d0b2480533495b8be4edcb495a01c5b4a9a865c95
Contents?: true
Size: 448 Bytes
Versions: 4
Compression:
Stored size: 448 Bytes
Contents
module ActiveRecord # :nodoc: module ConnectionAdapters # :nodoc: class MysqlAdapter # :nodoc: # Returns the maximum number of bytes that the server will allow # in a single packet def max_allowed_packet # :nodoc: result = execute( "SHOW VARIABLES like 'max_allowed_packet';" ) result.fetch_row[1].to_i end end #end MysqlAdapter end #end ConnectionAdapters end #end ActiveRecord
Version data entries
4 entries across 4 versions & 1 rubygems