Skip to content

Commit

Permalink
Merge pull request #83 from kppullin/set-defaults
Browse files Browse the repository at this point in the history
SET defaults
  • Loading branch information
pekim committed Mar 23, 2013
2 parents 9b7166b + c587a51 commit 94e9616
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/connection.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,22 @@ class Connection extends EventEmitter
@tokenStreamParser.addBuffer(data)

sendInitialSql: ->
payload = new SqlBatchPayload('set textsize ' + @config.options.textsize, @currentTransactionDescriptor())
initialSql = 'set textsize ' + @config.options.textsize + '''
set quoted_identifier on
set arithabort off
set numeric_roundabort off
set ansi_warnings on
set ansi_padding on
set ansi_nulls on
set concat_null_yields_null on
set cursor_close_on_commit off
set implicit_transactions off
set language us_english
set dateformat mdy
set datefirst 7
set transaction isolation level read committed'''

payload = new SqlBatchPayload(initialSql, @currentTransactionDescriptor())
@messageIo.sendMessage(TYPE.SQL_BATCH, payload.data)

processedInitialSql: ->
Expand Down

0 comments on commit 94e9616

Please sign in to comment.