db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vitzethum, Daniel" <Daniel.Vitzet...@gigatronik.com>
Subject Torque tries to insert 0 into nullable Foreign Key
Date Mon, 06 Dec 2004 12:22:17 GMT
Hello list,

one more question:

I have a schema with nullable foreign keys of type "INTEGER".
When saving a new object, Torque's buildCriteria method inserts
0 as the according column's value, what is wrong as it should be
null. Even defaults in DB don't work therefore.

My Oracle DB refuses to insert 0 as the foreign key constraint is
violated, what is the right behavior.

Any ideas how to deal with that?


Thanks in advance,

Daniel


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


Mime
View raw message