@@ -25,15 +25,14 @@ import Rediscovery from './rediscovery'
2525import RoutingUtil from './routing-util'
2626import { HostNameResolver } from './node'
2727import SingleConnectionProvider from './connection-provider-single'
28- import { ServerVersion , VERSION_4_0_0 } from './server-version'
2928import PooledConnectionProvider from './connection-provider-pooled'
3029import ConnectionErrorHandler from './connection-error-handler'
3130import DelegateConnection from './connection-delegate'
3231import LeastConnectedLoadBalancingStrategy from './least-connected-load-balancing-strategy'
3332import Bookmark from './bookmark'
3433import ChannelConnection from './connection-channel'
3534import { int } from '../integer'
36- import { BOLT_PROTOCOL_V4 , BOLT_PROTOCOL_V3 } from './constants'
35+ import { BOLT_PROTOCOL_V3 , BOLT_PROTOCOL_V4_0 } from './constants'
3736
3837const UNAUTHORIZED_ERROR_CODE = 'Neo.ClientError.Security.Unauthorized'
3938const DATABASE_NOT_FOUND_ERROR_CODE =
@@ -189,7 +188,7 @@ export default class RoutingConnectionProvider extends PooledConnectionProvider
189188
190189 async supportsMultiDb ( ) {
191190 return await this . _hasProtocolVersion (
192- version => version >= BOLT_PROTOCOL_V4
191+ version => version >= BOLT_PROTOCOL_V4_0
193192 )
194193 }
195194
@@ -424,8 +423,8 @@ export default class RoutingConnectionProvider extends PooledConnectionProvider
424423 const connection = await this . _connectionPool . acquire ( routerAddress )
425424 const connectionProvider = new SingleConnectionProvider ( connection )
426425
427- const version = ServerVersion . fromString ( connection . version )
428- if ( version . compareTo ( VERSION_4_0_0 ) < 0 ) {
426+ const protocolVersion = connection . protocol ( ) . version
427+ if ( protocolVersion < 4. 0) {
429428 return new Session ( {
430429 mode : WRITE ,
431430 bookmark : Bookmark . empty ( ) ,
0 commit comments