Sha256: 1c2bb6b2ceeb239db5cc9bf0519d3c1e6c3ef542ed57f2987ad663a565aa5a6c
Contents?: true
Size: 333 Bytes
Versions: 10
Compression:
Stored size: 333 Bytes
Contents
ActiveRecord::ConnectionAdapters::MysqlAdapter.class_eval do # 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 def rollup_sql; " WITH ROLLUP "; end end
Version data entries
10 entries across 10 versions & 4 rubygems