Repository: trafodion Updated Branches: refs/heads/master fe62cce78 -> 51bed00bf
[TRAFODION-510] Internal error or core dump with set table timeout Disable this syntax that is no longer supported, so that we don't get a core dump in debug builds. This caused a core every time I ran the core/TEST019 regression test on a debug build. Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/2177ad87 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/2177ad87 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/2177ad87 Branch: refs/heads/master Commit: 2177ad87107e49d9a58bc0f22d1ad474b2b5c6ef Parents: 80a0113 Author: Hans Zeller <[email protected]> Authored: Tue May 8 17:12:09 2018 +0000 Committer: Hans Zeller <[email protected]> Committed: Tue May 8 17:12:09 2018 +0000 ---------------------------------------------------------------------- core/sql/parser/sqlparser.y | 8 ++++++++ 1 file changed, 8 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/2177ad87/core/sql/parser/sqlparser.y ---------------------------------------------------------------------- diff --git a/core/sql/parser/sqlparser.y b/core/sql/parser/sqlparser.y index 2795eff..ad24efe 100755 --- a/core/sql/parser/sqlparser.y +++ b/core/sql/parser/sqlparser.y @@ -23397,12 +23397,20 @@ set_table_statement: TOK_SET TOK_TABLE set_table_name { $$ = new (PARSERHEAP()) // a RESET RelSetTimeout( *$3, NULL, $4, TRUE ); + *SqlParser_Diags << DgSqlCode(-4222) + << DgString0("SET TABLE TIMEOUT"); + yyerror(""); + YYABORT; } | TOK_SET TOK_TABLE set_table_name // a timeout value optional_stream TOK_TIMEOUT timeout_value { $$ = new (PARSERHEAP()) RelSetTimeout( *$3, (ItemExpr *) $6 , $4); + *SqlParser_Diags << DgSqlCode(-4222) + << DgString0("SET TABLE TIMEOUT"); + yyerror(""); + YYABORT; }
