[jboss-svn-commits] JBL Code SVN: r20266 - labs/jbossesb/workspace/maeste/product/rosetta/src/org/jboss/soa/esb/listeners/gateway.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Jun 3 09:06:25 EDT 2008
Author: maeste
Date: 2008-06-03 09:06:25 -0400 (Tue, 03 Jun 2008)
New Revision: 20266
Modified:
labs/jbossesb/workspace/maeste/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListener.java
Log:
applied patch from [JBESB-1770] needed in my use case
Modified: labs/jbossesb/workspace/maeste/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListener.java
===================================================================
--- labs/jbossesb/workspace/maeste/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListener.java 2008-06-03 12:59:07 UTC (rev 20265)
+++ labs/jbossesb/workspace/maeste/product/rosetta/src/org/jboss/soa/esb/listeners/gateway/SqlTableGatewayListener.java 2008-06-03 13:06:25 UTC (rev 20266)
@@ -590,7 +590,7 @@
protected String updateStatement() {
StringBuilder sb = new StringBuilder().append("update ").append(
_tableName).append(" set ").append(_inProcessField).append(" = ? ");
- if (_timestamp.trim().length() < 1) {
+ if (_timestamp.trim().length() >= 1) {
sb.append(", " + _timestamp + " = ? ");
}
sb.append("where ").append(_inProcessField).append(" = ?");
@@ -718,7 +718,7 @@
try {
int iParm = 3;
- if (_timestamp.trim().length() < 1) {
+ if (_timestamp.trim().length() >= 1) {
iParm++;
}
@@ -751,7 +751,7 @@
try {
int counter = 1;
_PSupdate.setString(counter++, getStatus(toState));
- if (_timestamp.trim().length() < 1) {
+ if (_timestamp.trim().length() >= 1) {
Date now = new Date();
_PSupdate.setString(counter++, now.toString());
}
More information about the jboss-svn-commits
mailing list