Open
Description
Got this from a failing constraint:
--> ComQueryPacket
ComQueryPacket {
command: 3,
sql: 'insert into `roles` (`bu_id`, `comment`, `community_id`, `is_admin`, `is_master`, `user_id`) values (1, \'\', 1, false, false, 11)' }
<-- ErrorPacket
ErrorPacket {
fieldCount: 255,
errno: 4025,
sqlStateMarker: '#',
sqlState: '23000',
message: 'CONSTRAINT `exactly_one_fk_id` failed for `insights-system`.`roles`' }
The failing constraint was defined as:
ALTER TABLE roles ADD CONSTRAINT exactly_one_fk_id CHECK (community_id IS NULL XOR bu_id IS NULL)
Server version is MariaDB 10.2.12