# File lib/active_record/vendor/mysql411.rb, line 110 def make_client_auth_packet_41( flag, user, password, db ) if db && @server_capabilities & CLIENT_CONNECT_WITH_DB != 0 template = "VVcx23a#{user.size+1}cA#{password.size}a#{db.size+1}" else template = "VVcx23a#{user.size+1}cA#{password.size}x" end [ flag, @max_allowed_packet, @server_language, user, password.size, password, db ].pack( template ) end