Ahem, I re-iterate
I am attempting to create a schema that models customer accounts
a snippet of my xml-schema looks like so
" <column name="LAST_PAY_AMNT" required="true" size="6,2" type="FLOAT"/>
   <column name="AMNT_DUE" required="true" size="6,2" type="FLOAT"/>"
this produces the following when build-project.sh init is run
"
  java.lang.NumberFormatException: 6,2
        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:917)
        at
org.apache.turbine.torque.transform.XmlToAppData.parseFile(XmlToAppData.java:126)
        at
org.apache.turbine.torque.ant.VTorqueTask.initControlContext(VTorqueTask.java:192)
        at org.apache.velocity.texen.ant.TexenTask.execute(TexenTask.java:299)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:213)
        at
org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:103)
        at org.apache.tools.ant.Target.execute(Target.java:153)
        at org.apache.tools.ant.Project.runTarget(Project.java:898)
        at org.apache.tools.ant.Project.executeTarget(Project.java:536)
        at org.apache.tools.ant.Project.executeTargets(Project.java:510)
        at org.apache.tools.ant.Main.runBuild(Main.java:421)
        at org.apache.tools.ant.Main.main(Main.java:149)
"
which obviously kills the build, if I change the FLOATS to read "6" it
builds ok and I can ALTER the TABLE manually, but this kind of defeats
the point.

also, in another part of the same schema:
The Index declaration
   "<index name="BY_AGENT">
      <index-column name="AGENT_ID"/>
    </index>
    <index name="BY_CLIENT">
      <index-column name="CLIENT_ID"/>
    </index>"

produces the following malformed SQL

  " INDEX BY_AGENT (AGENT_ID)
    INDEX BY_CLIENT (CLIENT_ID)
); "

not too bad until you notice the missing ',' at the end of the first
INDEX line.
this again is not a problem if I leave the one INDEX off the schema and
add it later by hand, but this also defeats the object of using torque
and messes with the OM
is this something I have missed or a bug?
I am using JDK1.3 on RedHat 7.0 and MySQL, TDK 1.1a10
what gives? 
is there some special way of getting torque to handle basic currency, or
must I download the source and start hacking?
Sean Allen`









------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to