mpoeschl 2002/11/11 03:00:22
Modified: src/java/org/apache/torque/task TorqueSQLExec.java
xdocs changes.xml
Log:
TRQ2: TorqueSQLExec ignores lines starting with "rem"
changed this to "rem " (notice the space) as columns like 'remote...' were ignored
too
Revision Changes Path
1.14 +5 -3
jakarta-turbine-torque/src/java/org/apache/torque/task/TorqueSQLExec.java
Index: TorqueSQLExec.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-torque/src/java/org/apache/torque/task/TorqueSQLExec.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- TorqueSQLExec.java 28 Aug 2002 22:48:08 -0000 1.13
+++ TorqueSQLExec.java 11 Nov 2002 11:00:22 -0000 1.14
@@ -679,6 +679,8 @@
}
/**
+ * Read the statements from the .sql file and execute them.
+ * Lines starting with '//', '--' or 'REM ' are ignored.
*
* @param reader
* @param out
@@ -704,8 +706,8 @@
{
continue;
}
- if (line.length() > 2
- && line.substring(0, 3).equalsIgnoreCase("REM"))
+ if (line.length() > 4
+ && line.substring(0, 4).equalsIgnoreCase("REM "))
{
continue;
}
1.46 +5 -0 jakarta-turbine-torque/xdocs/changes.xml
Index: changes.xml
===================================================================
RCS file: /home/cvs/jakarta-turbine-torque/xdocs/changes.xml,v
retrieving revision 1.45
retrieving revision 1.46
diff -u -r1.45 -r1.46
--- changes.xml 1 Nov 2002 22:34:17 -0000 1.45
+++ changes.xml 11 Nov 2002 11:00:22 -0000 1.46
@@ -18,6 +18,8 @@
<p>
<ul>
<li>
+ TRQ2: the TorqueSQLExec task ignores lines starting with '//', '--' or
+ 'REM ' (notice the space!!).
</li>
</ul>
</p>
@@ -37,6 +39,9 @@
<subsection name="Fixed bugs">
<p>
<ul>
+ <li>
+ TRQD6: update README (ant 1.5 is required)
+ </li>
<li>
Doc generation (anakia format): escape characters not allowed in XML
</li>
--
To unsubscribe, e-mail: <mailto:turbine-torque-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:turbine-torque-dev-help@;jakarta.apache.org>