Subject | Re: [firebird-php] Inserting NULLs as parameter |
---|---|
Author | Jiri Cincura |
Post date | 2008-04-13T19:10:22Z |
On 4/13/08, Jochem Maas <jochem@...> wrote:
--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com
> the field doesn't allow a NULL, that's why you get the error.I have a before insert trigger.
> one way to tackle this is use an insert trigger that sets
> the new.id (from the relevant generator) when the given insert id
> is not set ... and change your query to:
> update or insert into polls (question, visible) values (?, ?) returning new.idBut this isn't same as mine. This will do insert every time.
--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com