On Thu, 23 Nov 2000, fanyun wrote:
> Hi,
>
> I am now using Torque 1.9a. I want a char field to be primary key.
>
> I find that in peer.vm, the buildCriteria function will have create a line:
>
> if(obj.get${cfc}() > 0)
>
>
> This will give out an type mismatch error when compile.
>
>
> Any comment?
You can simply remove that line from your generated
peer, or you can remove that line from the Peer.vm
template before you generate your peers
and it will compile. The assumption was
made that the primary key would be an integer
type, but I will look into making it more flexible
and not to assume a single column, integer primary
key.
--
jvz.
Jason van Zyl
[EMAIL PROTECTED]
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]