Merge pull request #438 from robraux/global-leak-fixes
fix global variable leaks for ROW_DESCRIPTION, FORMAT_TEXT, FORMAT_BINARY, DATA_ROW
This commit is contained in:
commit
944f09be61
@ -460,7 +460,7 @@ Connection.prototype.parseZ = function(buffer, length) {
|
||||
return msg;
|
||||
};
|
||||
|
||||
ROW_DESCRIPTION = 'rowDescription';
|
||||
var ROW_DESCRIPTION = 'rowDescription';
|
||||
Connection.prototype.parseT = function(buffer, length) {
|
||||
var msg = new Message(ROW_DESCRIPTION, length);
|
||||
msg.fieldCount = this.parseInt16(buffer);
|
||||
@ -482,8 +482,8 @@ var Field = function() {
|
||||
this.format = null;
|
||||
};
|
||||
|
||||
FORMAT_TEXT = 'text';
|
||||
FORMAT_BINARY = 'binary';
|
||||
var FORMAT_TEXT = 'text';
|
||||
var FORMAT_BINARY = 'binary';
|
||||
Connection.prototype.parseField = function(buffer) {
|
||||
var field = new Field();
|
||||
field.name = this.parseCString(buffer);
|
||||
@ -502,7 +502,7 @@ Connection.prototype.parseField = function(buffer) {
|
||||
return field;
|
||||
};
|
||||
|
||||
DATA_ROW = 'dataRow';
|
||||
var DATA_ROW = 'dataRow';
|
||||
var DataRowMessage = function(name, length, fieldCount) {
|
||||
this.name = DATA_ROW;
|
||||
this.length = length;
|
||||
|
Loading…
Reference in New Issue
Block a user