method

max_allowed_packet_reached?

max_allowed_packet_reached?(current_packet, previous_packet)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/mysql/database_statements.rb, line 70
          def max_allowed_packet_reached?(current_packet, previous_packet)
            if current_packet.bytesize > max_allowed_packet
              raise ActiveRecordError,
                "Fixtures set is too large #{current_packet.bytesize}. Consider increasing the max_allowed_packet variable."
            elsif previous_packet.nil?
              true
            else
              (current_packet.bytesize + previous_packet.bytesize + 2) > max_allowed_packet
            end
          end