Browse files

Merge pull request #80 from drudge/master

Add placeholder event handlers to suppress crash in final
  • Loading branch information...
2 parents 9f2b4ce + b2b4c7a commit 3e513054265efdc0befc12407ff3ff108c9383dc @pekim pekim committed Mar 7, 2013
Showing with 5 additions and 1 deletion.
  1. +5 −1 src/connection.coffee
View
6 src/connection.coffee
@@ -140,6 +140,10 @@ class Connection extends EventEmitter
# Do nothing. The connection was probably closed by the client code.
connectTimeout: ->
# Do nothing, as the timer should be cleaned up.
+ message: ->
+ # Do nothing
+ socketError: ->
+ # Do nothing
constructor: (@config) ->
@defaultConfig()
@@ -369,7 +373,7 @@ class Connection extends EventEmitter
loginData =
userName: @config.userName
password: @config.password
- database: @config.options.database
+ database: @config.database
packetSize: @config.options.packetSize
tdsVersion: @config.options.tdsVersion

0 comments on commit 3e51305

Please sign in to comment.