Author: shawkins
Date: 2012-03-12 14:52:17 -0400 (Mon, 12 Mar 2012)
New Revision: 3934
Modified:
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionException.java
trunk/connectors/translator-jdbc/src/main/resources/org/teiid/translator/jdbc/i18n.properties
Log:
TEIID-1969 fixing error message
Modified:
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionException.java
===================================================================
---
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionException.java 2012-03-12
17:53:35 UTC (rev 3933)
+++
trunk/connectors/translator-jdbc/src/main/java/org/teiid/translator/jdbc/JDBCExecutionException.java 2012-03-12
18:52:17 UTC (rev 3934)
@@ -34,7 +34,7 @@
private static final long serialVersionUID = 1758087499488916573L;
public JDBCExecutionException(BundleUtil.Event event, SQLException
error,TranslatedCommand... commands) {
- super(error, commands == null || commands.length == 0 ?
event.toString()+":"+error.getMessage() :
event.toString()+":"+JDBCPlugin.Util.getString("JDBCQueryExecution.Error_executing_query__1",
error.getMessage(), Arrays.toString(commands))); //$NON-NLS-1$ //$NON-NLS-2$
//$NON-NLS-3$
+ super(error, commands == null || commands.length == 0 ?
event.toString()+":"+error.getMessage() :
event.toString()+":"+JDBCPlugin.Util.gs(JDBCPlugin.Event.TEIID11004,
Arrays.toString(commands))); //$NON-NLS-1$ //$NON-NLS-2$
setCode(String.valueOf(error.getErrorCode()));
}
}
Modified:
trunk/connectors/translator-jdbc/src/main/resources/org/teiid/translator/jdbc/i18n.properties
===================================================================
---
trunk/connectors/translator-jdbc/src/main/resources/org/teiid/translator/jdbc/i18n.properties 2012-03-12
17:53:35 UTC (rev 3933)
+++
trunk/connectors/translator-jdbc/src/main/resources/org/teiid/translator/jdbc/i18n.properties 2012-03-12
18:52:17 UTC (rev 3934)
@@ -25,7 +25,7 @@
-TEIID11004=''{0}'' error executing statement(s): {1}
+TEIID11004=Error executing statement(s): {0}
SQLConversionVisitor.invalid_parameter=Invalid parameter {0}. Must be between 1 and
{1}.
SQLConversionVisitor.not_in_parameter=Invalid parameter {0}. Native query procedures
cannot use non IN parameters.
TEIID11003=Not using oracle execution payload {0} as hint, since it apprears to contain
more than just a single comment.