Initial commit
This commit is contained in:
14
node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js
generated
vendored
Normal file
14
node_modules/mysql/lib/protocol/packets/UseOldPasswordPacket.js
generated
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
module.exports = UseOldPasswordPacket;
|
||||
function UseOldPasswordPacket(options) {
|
||||
options = options || {};
|
||||
|
||||
this.firstByte = options.firstByte || 0xfe;
|
||||
}
|
||||
|
||||
UseOldPasswordPacket.prototype.parse = function(parser) {
|
||||
this.firstByte = parser.parseUnsignedNumber(1);
|
||||
};
|
||||
|
||||
UseOldPasswordPacket.prototype.write = function(writer) {
|
||||
writer.writeUnsignedNumber(1, this.firstByte);
|
||||
};
|
Reference in New Issue
Block a user