   connection = new Connection(config)
 
   connection.on('connection', (err) ->
-    test.ok(!err)
-
     connection.execSql(request)
   )
 

  )

exports.execSimpleSql = (test) ->
  test.expect(8)

  config = getConfig()


    #console.log(text)
  )

exports.execBadSql = (test) ->
  test.expect(3)

  config = getConfig()

  request = new Request('bad syntax here', (err) ->
      test.ok(err)

      connection.close()
  )

  request.on('done', (rowCount) ->
      test.ok(!rowCount)
  )

  connection = new Connection(config)

  connection.on('connection', (err) ->
      connection.execSql(request)
  )

  connection.on('end', (info) ->
      test.done()
  )

  connection.on('errorMessage', (error) ->
    #console.log("#{info.number} : #{info.message}")
    test.ok(error)
  )

  connection.on('debug', (text) ->
    #console.log(text)
  )

exports.sqlWithMultipleResultSets = (test) ->
  test.expect(7)

  config = getConfig()
  row = 0
