[CDBI] Difference between add_constraint during INSERT and UPDATE?

[prev] [thread] [next] [Date index for 2005/12/19]

From: Johnny Morano
Subject: [CDBI] Difference between add_constraint during INSERT and UPDATE?
Date: 16:00 on 19 Dec 2005
Hi,

I've just discovered that when I submit a form, which is going to insert
data into the database, and when I have created constraints in CDBI with
the method 'add_constraint', that the constraint is not executed on the
columns that have an empty value.

When I try to update that row in my same webapp, in a update window/mode
thing, columns with empty values are being send through the constraint.

Is this a normal operation?

I retrieve my params with Apache::Request->parms (so it's an Apache::Tabl=
e
object). And in both screen (insert and update), the empty columns look
like this:

column_name =3D> ''

_______________________________________________
ClassDBI mailing list
ClassDBI@xxxxx.xxxxxxxxxxxxxxxx.xxx
http://lists.digitalcraftsmen.net/mailman/listinfo/classdbi

(message missing)

[CDBI] Difference between add_constraint during INSERT and UPDATE?
Johnny Morano 16:00 on 19 Dec 2005

Generated at 19:11 on 22 Dec 2005 by mariachi v0.52