Re: pre_insert trigger not working
A new.id of '0000000000000000' isn't empty. +0 coerces it to a numeric.
I suggested keeping if ...isnull(new.id)... because you'd not shown any code preventing null values.
If this is MySQL 8.0.13 or later, you can default the column to ma.uuid_to_bin(uuid()).
Subject
Views
Written By
Posted
1563
June 06, 2019 01:03PM
637
June 06, 2019 03:17PM
708
June 06, 2019 03:22PM
685
June 06, 2019 04:15PM
632
June 06, 2019 04:54PM
610
June 06, 2019 05:10PM
660
June 07, 2019 06:18AM
Re: pre_insert trigger not working
640
June 07, 2019 10:36AM
613
June 07, 2019 10:56AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.