bodewig 2003/05/29 23:35:41
Modified: src/main/org/apache/tools/ant/taskdefs SQLExec.java
src/testcases/org/apache/tools/ant/types AddTypeTest.java
Log:
Log all statements in <sql>
PR: 20309
Revision Changes Path
1.55 +1 -1 ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.java
Index: SQLExec.java
===================================================================
RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/SQLExec.java,v
retrieving revision 1.54
retrieving revision 1.55
diff -u -r1.54 -r1.55
--- SQLExec.java 21 Apr 2003 14:21:16 -0000 1.54
+++ SQLExec.java 30 May 2003 06:35:41 -0000 1.55
@@ -503,7 +503,6 @@
||
(delimiterType.equals(DelimiterType.ROW)
&& line.equals(delimiter))) {
- log("SQL: " + sql, Project.MSG_VERBOSE);
execSQL(sql.substring(0, sql.length() - delimiter.length()),
out);
sql.replace(0, sql.length(), "");
@@ -527,6 +526,7 @@
try {
totalSql++;
+ log("SQL: " + sql, Project.MSG_VERBOSE);
if (!statement.execute(sql)) {
log(statement.getUpdateCount() + " rows affected",
Project.MSG_VERBOSE);
1.2 +1 -1
ant/src/testcases/org/apache/tools/ant/types/AddTypeTest.java
Index: AddTypeTest.java
===================================================================
RCS file:
/home/cvs/ant/src/testcases/org/apache/tools/ant/types/AddTypeTest.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AddTypeTest.java 28 May 2003 16:27:37 -0000 1.1
+++ AddTypeTest.java 30 May 2003 06:35:41 -0000 1.2
@@ -1,7 +1,7 @@
/*
* The Apache Software License, Version 1.1
*
- * Copyright (c) 2002 The Apache Software Foundation. All rights
+ * Copyright (c) 2003 The Apache Software Foundation. All rights
* reserved.
*
* Redistribution and use in source and binary forms, with or without