https://issues.apache.org/bugzilla/show_bug.cgi?id=45668

           Summary: 6th example for sql task has syntax error
           Product: Ant
           Version: unspecified
          Platform: All
               URL: http://ant.apache.org/manual/CoreTasks/sql.html
        OS/Version: All
            Status: NEW
          Severity: trivial
          Priority: P5
         Component: Documentation
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


The sixth example for the sql task
(http://ant.apache.org/manual/CoreTasks/sql.html) has a syntax error.  The path
element is not ended correctly.  Under the text:

"The following example does the same as (and may execute additional SQL files
if there are more files matching the pattern data*.sql) but doesn't guarantee
that data1.sql will be run before data2.sql."

The example is

<sql
    driver="org.database.jdbcDriver"
    url="jdbc:database-url"
    userid="sa"
    password="pass">
  <path>
    <fileset dir=".">
      <include name="data*.sql"/>
    </fileset>
  <path>
  <transaction>
    truncate table some_other_table;
  </transaction>
</sql>

It should be (the difference being that it has </path> instead of <path>)

<sql
    driver="org.database.jdbcDriver"
    url="jdbc:database-url"
    userid="sa"
    password="pass">
  <path>
    <fileset dir=".">
      <include name="data*.sql"/>
    </fileset>
  </path>
  <transaction>
    truncate table some_other_table;
  </transaction>
</sql>


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to