[
https://issues.apache.org/jira/browse/TRAFODION-3146?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16567629#comment-16567629
]
ASF GitHub Bot commented on TRAFODION-3146:
-------------------------------------------
Github user DaveBirdsall commented on a diff in the pull request:
https://github.com/apache/trafodion/pull/1677#discussion_r207411473
--- Diff: core/sql/exp/exp_function.cpp ---
@@ -786,13 +786,18 @@ ExpRaiseErrorFunction::ExpRaiseErrorFunction
(Attributes **attr,
NABoolean raiseError,
const char *constraintName,
const char *tableName,
- const NABoolean hasStringExp)
// -- Triggers
+ const NABoolean
hasStringExp, // -- Triggers
+ const char * optionalStr)
: ex_function_clause (ITM_RAISE_ERROR, (hasStringExp ? 2 : 1), attr,
space),
- theSQLCODE_(sqlCode),
- constraintName_((char *)constraintName),
- tableName_((char *)tableName)
+ theSQLCODE_(sqlCode),
+ constraintName_((char *)constraintName),
+ tableName_((char *)tableName)
{
- setRaiseError(raiseError);
+ setRaiseError(raiseError);
+
+
+ strncpy(optionalStr_, optionalStr, MAX_OPTIONAL_STR_LEN);
--- End diff --
This will abend if "optionalStr" is null
> Add SQL Server functions
> ------------------------
>
> Key: TRAFODION-3146
> URL: https://issues.apache.org/jira/browse/TRAFODION-3146
> Project: Apache Trafodion
> Issue Type: Umbrella
> Reporter: liu ming
> Assignee: liu ming
> Priority: Major
>
> To support SQL Server functions
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)