Class: Mysql::Protocol::StmtClosePacket

Inherits:
TxPacket
  • Object
show all
Defined in:
lib/mysql/protocol.rb

Overview

Stmt close packet

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ StmtClosePacket

Returns a new instance of StmtClosePacket.



529
530
531
# File 'lib/mysql/protocol.rb', line 529

def initialize(*args)
  @statement_id, = args
end

Instance Attribute Details

#statement_idObject

Returns the value of attribute statement_id.



527
528
529
# File 'lib/mysql/protocol.rb', line 527

def statement_id
  @statement_id
end

Instance Method Details

#serializeObject



533
534
535
# File 'lib/mysql/protocol.rb', line 533

def serialize
  [Mysql::COM_STMT_CLOSE, statement_id].pack("CV")
end