 set language us_english
 set dateformat mdy
 set datefirst 7
-set transaction isolation level read committed'''
+set transaction isolation level #{@getIsolationLevelText @config.options.connectionIsolationLevel}'''
 
   processedInitialSql: ->
       @clearConnectTimer()

  currentTransactionDescriptor: ->
    @transactionDescriptors[@transactionDescriptors.length - 1]

module.exports = Connection

    @config.options.cryptoCredentialsDetails ||= {}
    @config.options.useUTC ?= true
    @config.options.useColumnNames ?= false
    @config.options.connectionIsolationLevel ||= ISOLATION_LEVEL.READ_COMMITTED

    if !@config.options.port && !@config.options.instanceName
      @config.options.port = DEFAULT_PORT
