This is an automated email from the ASF dual-hosted git repository. isapego pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/ignite-nodejs-thin-client.git
commit 8a63b1167e81747dd90d2dafe2f3320a2e918948 Author: Nikolay Izhikov <[email protected]> AuthorDate: Tue Aug 28 09:59:15 2018 +0300 IGNITE-6055: SQL. Add string length constraint - Fixes #3973. Signed-off-by: Nikolay Izhikov <[email protected]> --- lib/internal/ClientSocket.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/internal/ClientSocket.js b/lib/internal/ClientSocket.js index ac7ccec..1d1a4dd 100644 --- a/lib/internal/ClientSocket.js +++ b/lib/internal/ClientSocket.js @@ -77,12 +77,16 @@ class ProtocolVersion { const PROTOCOL_VERSION_1_0_0 = new ProtocolVersion(1, 0, 0); const PROTOCOL_VERSION_1_1_0 = new ProtocolVersion(1, 1, 0); +const PROTOCOL_VERSION_1_2_0 = new ProtocolVersion(1, 2, 0); const SUPPORTED_VERSIONS = [ // PROTOCOL_VERSION_1_0_0, // Support for QueryField precision/scale fields breaks 1.0.0 compatibility - PROTOCOL_VERSION_1_1_0 + PROTOCOL_VERSION_1_1_0, + PROTOCOL_VERSION_1_2_0 ]; +const CURRENT_VERSION = PROTOCOL_VERSION_1_2_0; + const STATE = Object.freeze({ INITIAL : 0, HANDSHAKE : 1, @@ -111,7 +115,7 @@ class ClientSocket { async connect() { return new Promise((resolve, reject) => { this._connectSocket( - this._getHandshake(PROTOCOL_VERSION_1_1_0, resolve, reject)); + this._getHandshake(CURRENT_VERSION, resolve, reject)); }); } @@ -430,4 +434,4 @@ class Request { } } -module.exports = ClientSocket; \ No newline at end of file +module.exports = ClientSocket;
