Details
-
Bug
-
Status: Closed (View Workflow)
-
Blocker
-
Resolution: Fixed
-
10.11.11
-
Debian GNU/Linux 11 (bullseye) (5.10.0-33-amd64)
Description
Hello,
Until version 10.11.10 i had no problem with the following statements,
but since 10.11.11 i get the error "ERROR 1048 (23000): Column 'ARTICLE_ID' cannot be null" on the last INSERT statement.
The only way i was able to get over the error is by removing BEFORE UPDATE trigger (table2_before_upd_tr).
DROP TABLE IF EXISTS table1; |
DROP TABLE IF EXISTS table2; |
|
CREATE TABLE table1 ( |
ARTICLE_ID INT NOT NULL, |
DEPOT_ID INT NOT NULL, |
BARSY_ID INT NOT NULL |
) ENGINE=InnoDB;
|
|
INSERT INTO table1 (ARTICLE_ID, DEPOT_ID, BARSY_ID) |
VALUES(1, 2, 3), (4, 5, 6); |
|
CREATE TABLE `table2` ( |
`ARTICLE_ID` int(11) NOT NULL, |
`DEPOT_ID` int(11) NOT NULL, |
`BARSY_ID` int(11) NOT NULL |
) ENGINE=InnoDB;
|
|
-- if i dont create the following trigger (table2_before_upd_tr), i get no error on the next INSERT ... SELECT
|
DELIMITER ;;
|
DROP TRIGGER IF EXISTS `table2_before_upd_tr`;; |
|
CREATE TRIGGER `table2_before_upd_tr` BEFORE UPDATE ON `table2` FOR EACH ROW BEGIN |
|
END;; |
DELIMITER ;
|
|
INSERT INTO table2 (ARTICLE_ID,DEPOT_ID,BARSY_ID) |
SELECT ARTICLE_ID, DEPOT_ID, BARSY_ID FROM table1; |
Attachments
Issue Links
- is caused by
-
MDEV-19761 Before Trigger not processed for Not Null Columns if no explicit value and no DEFAULT
-
- Closed
-
- is duplicated by
-
MDEV-36060 Warning: (1048) Column 'xxxxxxx' cannot be null
-
- Closed
-
-
MDEV-36066 v10.11.11 introduces bug that breaks production code - INSERT SELECT and triggres not working
-
- Closed
-
-
MDEV-36191 Multi-row insert fails on table with update before trigger
-
- Closed
-
-
MDEV-36224 Unexpected behavior with triggers.
-
- Closed
-
-
MDEV-36262 INSERT ... SELECT fails with BEFORE INSERT trigger in MariaDB 10.5.28 (NULL values for foreign-key fields)
-
- Closed
-
-
MDEV-36284 MariaDB: INSERT ... SELECT fails with "Column cannot be null" error when a BEFORE INSERT trigger modifies the column
-
- Closed
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue is caused by |
Link |
This issue is caused by |
Assignee | Sergei Golubchik [ serg ] |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.4 [ 29301 ] | |
Fix Version/s | 11.8 [ 29921 ] | |
Fix Version/s | 11.7 [ 29815 ] |
Fix Version/s | 11.7 [ 29815 ] |
Priority | Major [ 3 ] | Blocker [ 1 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Link |
This issue is caused by |
Status | Confirmed [ 10101 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | In Testing [ 10301 ] |
Fix Version/s | 11.7.2 [ 29914 ] | |
Fix Version/s | 11.8 [ 29921 ] |
Fix Version/s | 10.5.29 [ 29996 ] | |
Fix Version/s | 10.6.22 [ 29997 ] | |
Fix Version/s | 10.11.12 [ 29998 ] | |
Fix Version/s | 11.4.6 [ 29999 ] | |
Fix Version/s | 10.5 [ 23123 ] | |
Fix Version/s | 10.6 [ 24028 ] | |
Fix Version/s | 10.11 [ 27614 ] | |
Fix Version/s | 11.4 [ 29301 ] |
Resolution | Fixed [ 1 ] | |
Status | In Testing [ 10301 ] | Closed [ 6 ] |
Component/s | Triggers [ 10109 ] |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |
Link | This issue blocks MENT-2226 [ MENT-2226 ] |
Link |
This issue is duplicated by |
Link |
This issue relates to |
Link |
This issue is duplicated by |
Link |
This issue relates to |
Link |
This issue is duplicated by |
Link |
This issue is duplicated by |