You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafodion.apache.org by sa...@apache.org on 2016/09/02 21:24:23 UTC
[1/2] incubator-trafodion git commit: [TRAFODION-2202] in
mode_special_4, sequence function is broken
Repository: incubator-trafodion
Updated Branches:
refs/heads/master f7ed14f03 -> c7bcf3050
[TRAFODION-2202] in mode_special_4, sequence function is broken
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/8d75967c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/8d75967c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/8d75967c
Branch: refs/heads/master
Commit: 8d75967c8bbb123f9c87718528c18d6a21143742
Parents: c581a16
Author: Liu Ming <ov...@sina.com>
Authored: Fri Sep 2 14:10:31 2016 +0000
Committer: Liu Ming <ov...@sina.com>
Committed: Fri Sep 2 14:10:31 2016 +0000
----------------------------------------------------------------------
core/sql/cli/Cli.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/8d75967c/core/sql/cli/Cli.cpp
----------------------------------------------------------------------
diff --git a/core/sql/cli/Cli.cpp b/core/sql/cli/Cli.cpp
index d39eb51..24e8c4a 100644
--- a/core/sql/cli/Cli.cpp
+++ b/core/sql/cli/Cli.cpp
@@ -11599,7 +11599,7 @@ static Lng32 SeqGenCliInterfaceUpdAndValidate(
if (! cliInterfaceArr[SEQ_PROCESS_QRY_IDX])
{
cliRC = SeqGenCliInterfacePrepQry(
- "select case when cast(? as largeint not null) = 1 then t.startVal else t.nextVal end, t.redefTS from (update %s.\"%s\".%s set next_value = (case when cast(? as largeint not null) = 1 then start_value + cast(? as largeint not null) else (case when next_value + cast(? as largeint not null) > max_value then max_value+1 else next_value + cast(? as largeint not null) end) end), num_calls = num_calls + 1 where seq_uid = %Ld return old.start_value, old.next_value, old.redef_ts) t(startVal, nextVal, redefTS);",
+ "select case when cast(? as largeint not null) = 1 then t.startVal else t.nextValue end, t.redefTS from (update %s.\"%s\".%s set next_value = (case when cast(? as largeint not null) = 1 then start_value + cast(? as largeint not null) else (case when next_value + cast(? as largeint not null) > max_value then max_value+1 else next_value + cast(? as largeint not null) end) end), num_calls = num_calls + 1 where seq_uid = %Ld return old.start_value, old.next_value, old.redef_ts) t(startVal, nextValue, redefTS);",
SEQ_PROCESS_QRY_IDX,
"SEQ_PROCESS_QRY_IDX",
cliInterfaceArr, sga, myDiags, currContext, diags, exHeap);
[2/2] incubator-trafodion git commit: Merge remote branch
'origin/pr/687/head' into merge_687
Posted by sa...@apache.org.
Merge remote branch 'origin/pr/687/head' into merge_687
Project: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/commit/c7bcf305
Tree: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/tree/c7bcf305
Diff: http://git-wip-us.apache.org/repos/asf/incubator-trafodion/diff/c7bcf305
Branch: refs/heads/master
Commit: c7bcf3050e1d0ab6d844df65545c494c15b3e835
Parents: f7ed14f 8d75967
Author: Sandhya Sundaresan <sa...@apache.org>
Authored: Fri Sep 2 21:23:58 2016 +0000
Committer: Sandhya Sundaresan <sa...@apache.org>
Committed: Fri Sep 2 21:23:58 2016 +0000
----------------------------------------------------------------------
core/sql/cli/Cli.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------