Github user arvind-narain commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/120#discussion_r42021824
--- Diff: core/conn/jdbc_type4/src/org/trafodion/jdbc/t4/HPT4Messages.java
---
@@ -251,18 +253,13 @@ static HPT4Exception createSQLException(T4Properties
t4props, Locale msgLocale,
Object p[] = T4LoggingUtilities.makeParams(t4props,
messageId, messageArguments);
log.logp(Level.SEVERE, "HPT4Messages",
"createSQLException", "", p);
}
-
- Locale currentLocale;
+
+ Locale currentLocale = t4props == null ? null :
t4props.getLocale();
+ currentLocale = currentLocale == null ? Locale.getDefault():
currentLocale;
+
int sqlcode;
--- End diff --
Do please check that ignoring msgLocale is ok for all callers.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---