Class: Mysql::ErrorPacket
Overview
Serialize an error message
Class Method Summary collapse
-
.serialize(errno, message) ⇒ String
Generate a packet with a given error number and message.
Class Method Details
.serialize(errno, message) ⇒ String
Generate a packet with a given error number and message
264 265 266 267 268 269 270 271 272 |
# File 'lib/nose/proxy/mysql.rb', line 264 def self.serialize(errno, ) [ 0xff, errno, '#', @sqlstate, ].pack('Cvaa5a*') end |