db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Graham Leggett <minf...@sharp.fm>
Subject <table>.get<LinkedTable>() and the zero primary key
Date Fri, 14 May 2004 17:29:41 GMT
Hi all,

I have a table A, that is linked via a foreign key to table B. In table 
B there is a row with a primary key of zero, and in table A, the value 
of the foreign key is zero.

But: a.getB() returns null.

Is zero a special case in this situation? Why would torque choose not to 
return the row in B?

I am using torque v3.1 with postgresql.


To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org

View raw message