We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 61d473f + f2abaa8 commit 21ad545Copy full SHA for 21ad545
lib/packets/column_definition.js
@@ -112,10 +112,19 @@ const addString = function(name) {
112
get: function() {
113
const start = this[`_${name}Start`];
114
const end = start + this[`_${name}Length`];
115
- return StringParser.decode(
+ const val = StringParser.decode(
116
this._buf.slice(start, end),
117
this.encoding === 'binary' ? this._clientEncoding : this.encoding
118
);
119
+
120
+ Object.defineProperty(this, name, {
121
+ value: val,
122
+ writable: false,
123
+ configurable: false,
124
+ enumerable: false
125
+ });
126
127
+ return val;
128
}
129
});
130
};
0 commit comments