Skip to content

Commit

Permalink
0004906: Sybase ASE: update trigger needs to set nocount on on very
Browse files Browse the repository at this point in the history
first statement
  • Loading branch information
Philip Marzullo committed Mar 19, 2021
1 parent c8daaf1 commit 11e5771
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -102,14 +102,14 @@ public AseTriggerTemplate(ISymmetricDialect symmetricDialect) {
sqlTemplates.put("updateTriggerTemplate" ,
"create trigger $(triggerName) on $(schemaName)$(tableName) for update " + getOrderClause() + " as\n" +
" begin \n" +
" declare @LOCALROWCOUNT int \n" +
" set @LOCALROWCOUNT=@@ROWCOUNT \n" +
" set nocount on \n" +
" declare @LOCALROWCOUNT int \n" +
" declare @DataRow varchar(16384) \n" +
" declare @OldPk varchar(2000) \n" +
" declare @OldDataRow varchar(16384) \n" +
" declare @clientapplname varchar(50) \n" +
" declare @ChannelId varchar(128) \n" +
" select @LOCALROWCOUNT = count(*) from inserted \n" +
" select @clientapplname = clientapplname from master.dbo.sysprocesses where spid = @@spid \n" +
" declare @txid varchar(50) \n" +
" if (@@TRANCOUNT > 0) begin \n" +
Expand Down

0 comments on commit 11e5771

Please sign in to comment.