Github user kevinxu021 commented on a diff in the pull request:
https://github.com/apache/incubator-trafodion/pull/120#discussion_r42072033
--- 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 --
Arvind, Dont worry about it. t4props is the only way to get locale and
should be the only way. As i said, that is meaningless that some messages are
Chinese but the others are English. If we do that, it will involve more
misunderstandings.
---
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.
---