This repository has been archived on 2018-10-12. You can view files and clone it, but cannot push or open issues or pull requests.
node-task/node_modules/mysql2/lib/packets/prepared_statement_header.js

16 lines
389 B
JavaScript
Raw Normal View History

2014-09-24 17:56:53 -04:00
var Packet = require('../packets/packet');
function PreparedStatementHeader(packet)
{
packet.skip(1); // should be 0
this.id = packet.readInt32();
this.fieldCount = packet.readInt16();
this.parameterCount = packet.readInt16();
packet.skip(1); // should be 0
this.warningCount = packet.readInt16();
}
// TODO: toPacket
module.exports = PreparedStatementHeader;