You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-dev@db.apache.org by Andreou Andreas <an...@di.uoa.gr> on 2002/12/11 14:35:13 UTC
Re: [PATCH] Fixes and enhancements for the sql2xml task
Well, just some more thoughts:
- Is there a reason why the sql2xml task does NOT generate a dtd
compliant xml? You can
take a look at the toString() method of AppData.java and see that it
uses an <app-data> tag.
Also, the toString() method of ForeignKey.java does not append ondelete
and onupdate
information, and the toString() of Table.java does not append foreign
keys and indexes. Maybe
this was because the sql2xml task couldn't extract such information from
an *.sql file, but using a
patch I've submitted in the past all these can be extracted...
- Is there any interest on a SQLToAppData test? I've already created
such a test which basicly
does the following:
1) Copies all *.sql and *.ref.xml files from a folder in src/rttest
to target/test/rttest/sql
2) Generates a *.sql.xml file for each *.sql file in
target/test/rttest/sql using the sql2xml task
3) Compares all *.sql.xml files with the corresponding *.ref.xml.
The test passes if and only if
all data (= tags and values) found on *.ref.xml (reference xml) are
also found on the generated
*.sql.xml files
- Are there any other thoughts on how to improve the sql2xml task or the
above-described test?
Respect,
Andreas Andreou
Re: [PATCH] Fixes and enhancements for the sql2xml task
Posted by Martin Poeschl <mp...@marmot.at>.
Andreou Andreas wrote:
> Well, just some more thoughts:
>
> - Is there a reason why the sql2xml task does NOT generate a dtd
> compliant xml? You can
> take a look at the toString() method of AppData.java and see that it
> uses an <app-data> tag.
> Also, the toString() method of ForeignKey.java does not append
> ondelete and onupdate
> information, and the toString() of Table.java does not append foreign
> keys and indexes. Maybe
> this was because the sql2xml task couldn't extract such information
> from an *.sql file, but using a
> patch I've submitted in the past all these can be extracted...
>
> - Is there any interest on a SQLToAppData test? I've already created
> such a test which basicly
> does the following:
> 1) Copies all *.sql and *.ref.xml files from a folder in src/rttest
> to target/test/rttest/sql
> 2) Generates a *.sql.xml file for each *.sql file in
> target/test/rttest/sql using the sql2xml task
> 3) Compares all *.sql.xml files with the corresponding *.ref.xml.
> The test passes if and only if
> all data (= tags and values) found on *.ref.xml (reference xml) are
> also found on the generated
> *.sql.xml files
>
> - Are there any other thoughts on how to improve the sql2xml task or
> the above-described test?
did you file the issue and patches in scarab??
please add your tests to the issue ...
martin
>
>
> Respect,
> Andreas Andreou
>
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>