Peer.vm fixed. thanks,
john mcnally
Scott Eade wrote:
>
> The database schema for my application includes a
> number of boolean column definitions. I have tried
> defining these as BOOLEANCHAR, but this results
> in compilation errors in the peer classes (the error
> indicates that the variable Y cannot be resolved).
>
> >From the schema:
>
> <column name="CORRECT" required="false" type="BOOLEANCHAR"/>
>
> The incorrectly generated code looks like this:
>
> Class: Base...Peer
> Method: public static void populateObject (...)
>
> obj.setCorrect(Y.equals(row.getValue(offset+4).asString()));
>
> The problem is either that the "Y" should be quoted,
> or a constant "Y" should be defined to have the value
> "Y". Given that Y and N appear quoted elsewhere in
> the class, it appears that constants are not being used
> and thus the problem is that quote characters are not
> being generated around the character representation
> of the boolean Y in this particular method.
>
> Incidentally, BOOLEANINT works fine.
>
> I am using tdk 2.1 with mysql 3.23.28.
>
> Scott
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]