node-query/node_modules/mysql2/lib/commands/close_statement.js

19 lines
419 B
JavaScript

var util = require('util');
var Command = require('./command');
var Packets = require('../packets/index.js');
function CloseStatement(id)
{
Command.call(this);
this.id = id;
}
util.inherits(CloseStatement, Command);
CloseStatement.prototype.start = function(packet, connection) {
connection.writePacket(new Packets.CloseStatement(this.id).toPacket(1));
return null;
};
module.exports = CloseStatement;