Since I am not allowed to add issues to Scarab, I will just send the
issue and fix here.

I noticed that the jdbc Ant target did not create DECIMAL and NUMERIC
columns correctly. It would create, e.g.,

<column name="price" size="19" type="DECIMAL"/>

instead of

<column name="price" size="19,2" type="DECIMAL"/>

I had a look in the code (TorqueJDBCTransformTask.java) and I think my
attached changes fix the problem (i.e., works for me :-) ).

Bye,
Hilco
217a218
> 
258d258
<                     int precision = ((Integer) col.get(5)).intValue();
285,290c285,286
<                             || type.intValue() == Types.LONGVARCHAR))
<                     {
<                         column.setAttribute("size", String.valueOf(size));
<                     }
<                     
<                     if (size > 0 && (type.intValue() == Types.DECIMAL
---
>                             || type.intValue() == Types.LONGVARCHAR
>                             || type.intValue() == Types.DECIMAL
293c289
<                         column.setAttribute("size", String.valueOf(size) + "," + String.valueOf(precision));
---
>                         column.setAttribute("size", String.valueOf(size));
420d415
<                 Integer precision = new Integer(columnSet.getInt(9));
430d424
<                 col.add(precision);

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to