Repository: trafodion Updated Branches: refs/heads/master 77e81c75e -> 5fea1ac88
[TRAFODION-2990] Fix CREATE TABLE LIKE having long numeric default constant Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/582ff402 Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/582ff402 Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/582ff402 Branch: refs/heads/master Commit: 582ff40280d0f99025a529914ea78533fc6e12bc Parents: cd8f2fa Author: Dave Birdsall <[email protected]> Authored: Mon Mar 12 17:59:04 2018 +0000 Committer: Dave Birdsall <[email protected]> Committed: Mon Mar 12 17:59:04 2018 +0000 ---------------------------------------------------------------------- core/sql/common/NAString.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/trafodion/blob/582ff402/core/sql/common/NAString.cpp ---------------------------------------------------------------------- diff --git a/core/sql/common/NAString.cpp b/core/sql/common/NAString.cpp index 21128fb..b0bfb0b 100644 --- a/core/sql/common/NAString.cpp +++ b/core/sql/common/NAString.cpp @@ -1815,7 +1815,8 @@ size_t LineBreakSqlText(NAString &sqlText, } // unquoted space - else if (*s == '.') + else if ((*s == '.') && + (!isDigit8859_1((unsigned char)s[1]))) // ignore dots in numeric constants { dot[2] = dot[1]; dot[1] = dot[0];
