Menu

Insert not checking before-insert triggers

2005-01-04
2013-04-08
  • Daniel Miller

    Daniel Miller - 2005-01-04

    I love the flexibility ibwebadmin is giving me - but I've got one frustrating issue.  I make use of before-insert triggers and generators to provide auto-increment fields for primary keys.  The problem is ibwebadmin performs value checks on the non-null fields before sending the insert request to database.  This means I can't take advantage of my before-insert/update triggers.

     
    • Lutz Brueckner

      Lutz Brueckner - 2005-01-04

      Hi Daniel,

      try entering an integer value into the primary key field, the value will be overwritten by your trigger. This is not so elegant but it is working for me.

      Lutz

       
      • Lester Caine

        Lester Caine - 2005-01-04

        I just set the field to '0' and make sure that the trigger populates it with a value if it is zero ( or NULL ).

        It will be nice when later versions of Firebird return the value so you can use it.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.