sdeboy 2005/02/18 17:04:23
Modified: src/java/org/apache/log4j/db CustomSQLDBReceiver.java
Log:
Where clause now supported in receiver's sql statement
Revision Changes Path
1.3 +1 -0
logging-log4j/src/java/org/apache/log4j/db/CustomSQLDBReceiver.java
Index: CustomSQLDBReceiver.java
===================================================================
RCS file:
/home/cvs/logging-log4j/src/java/org/apache/log4j/db/CustomSQLDBReceiver.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- CustomSQLDBReceiver.java 7 Jan 2005 21:32:21 -0000 1.2
+++ CustomSQLDBReceiver.java 19 Feb 2005 01:04:23 -0000 1.3
@@ -165,6 +165,7 @@
throw new IllegalStateException(
"CustomSQLDBReceiver cannot function without a connection source");
}
+ whereExists = (sqlStatement.toUpperCase().indexOf(WHERE_CLAUSE) > -1);
customReceiverJob = new CustomReceiverJob();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]