Method: MysqlPR::Protocol#stmt_execute_command
- Defined in:
- lib/mysql-pr/protocol.rb
#stmt_execute_command(stmt_id, values) ⇒ Object
Stmt execute command
Argument
- stmt_id
- Integer
-
statement id
- values
- Array
-
parameters
Return
- Integer
-
number of fields
403 404 405 406 407 408 409 410 411 412 413 |
# File 'lib/mysql-pr/protocol.rb', line 403 def stmt_execute_command(stmt_id, values) check_state :READY begin reset write ExecutePacket.serialize(stmt_id, MysqlPR::Stmt::CURSOR_TYPE_NO_CURSOR, values) get_result rescue set_state :READY raise end end |