Author: bpendleton
Date: Fri Aug 21 14:39:07 2015
New Revision: 1697005
URL: http://svn.apache.org/r1697005
Log:
DERBY-6803: Change Sqlca and SqlException to call MessageUtils
This patch was contributed by Abhinav Gupta (abhinavgupta2004 at gmail dot com)
This change removes the redundant definition of the
sqlerrmc message delimeter from Sqlca in favor of the
shared definition of that constant available in the
new MessageUtils class.
Modified:
db/derby/code/trunk/java/client/org/apache/derby/client/am/Sqlca.java
Modified: db/derby/code/trunk/java/client/org/apache/derby/client/am/Sqlca.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/client/org/apache/derby/client/am/Sqlca.java?rev=1697005&r1=1697004&r2=1697005&view=diff
==============================================================================
--- db/derby/code/trunk/java/client/org/apache/derby/client/am/Sqlca.java (original)
+++ db/derby/code/trunk/java/client/org/apache/derby/client/am/Sqlca.java Fri Aug 21 14:39:07
2015
@@ -63,14 +63,6 @@ public abstract class Sqlca {
private boolean containsSqlcax_ = true;
private long rowsetRowCount_;
- /**
- * Character sequence that separates the different messages in the errmc.
- * @see org.apache.derby.shared.common.error.MessageUtils#SQLERRMC_MESSAGE_DELIMITER
- */
- private static final String sqlErrmcDelimiter__ = "\u0014\u0014\u0014";
-
-
-
// JDK stack trace calls e.getMessage(), so we must set some state on the sqlca that
says return tokens only.
private boolean returnTokensOnlyInMessageText_ = false;
@@ -172,7 +164,7 @@ public abstract class Sqlca {
int indx;
for (indx = 0; indx < sqlErrmcMessages_.length - 1; indx++) {
buffer.append(sqlErrmcMessages_[indx]);
- buffer.append(sqlErrmcDelimiter__);
+ buffer.append(MessageUtils.SQLERRMC_MESSAGE_DELIMITER);
// all but the first message should be preceded by the SQL state
// and a colon (see DRDAConnThread.buildTokenizedSqlerrmc() on the
// server)
|