Re: What's the canoninical way of dealing with a NOT NULL column?
[prev]
[thread]
[next]
[Date index for 2004/08/03]
Ian McDonald-ONLINE wrote:
> I've solved my problem: I was trying to do an INSERT without giving a
> value for a NOT NULL column.
>
> I tried adding __PACKAGE__->constrain_column( PARENT => qr/\S/ ) for the
> relevant column, but that didn't help. (I guess it doesn't check columns
> for which no value is given.)
>
> Perhaps I'm not looking hard enough, but I can't find an answer in the
> documentation or the list archives.
>
maybe you want to search documentation for "before_create" trigger :-)
barney
|
|
Re: What's the canoninical way of dealing with a NOT NULL column?
Branislav Zahradnik 12:01 on 03 Aug 2004
|