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

19 lines
419 B
JavaScript
Raw Normal View History

2015-01-28 15:33:44 -05:00
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;