[MDEV-19557] Error Function doen't exist in trigger Created: 2019-05-22  Updated: 2019-06-01  Resolved: 2019-05-22

Status: Closed
Project: MariaDB Server
Component/s: Data Manipulation - Update, Triggers
Affects Version/s: 10.2.24
Fix Version/s: 10.2.25, 5.5.65, 10.1.41, 10.3.16, 10.4.6

Type: Bug Priority: Major
Reporter: Emmanuel Assignee: Sergei Golubchik
Resolution: Duplicate Votes: 0
Labels: None
Environment:

debian stretch


Issue Links:
Duplicate
duplicates MDEV-19491 update query stopped working after ma... Closed

 Description   

I use 10.2.24 mariadb on debian stretch and I've got this error:

SET NAMES utf8;
SET time_zone = '+00:00';
SET foreign_key_checks = 0;
SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
 
DROP TABLE IF EXISTS `t1`;
CREATE TABLE `t1` (
  `col1` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
INSERT INTO `t1` (`col1`) VALUES (3);
 
DELIMITER ;;
 
CREATE TRIGGER `t1_bu` BEFORE UPDATE ON `t1` FOR EACH ROW
BEGIN 
    DECLARE TEST INT(11) DEFAULT 0;
 
SET TEST=yopyop();
END;;
 
DELIMITER ;
 
DROP TABLE IF EXISTS `t2`;
CREATE TABLE `t2` (
  `col1` int(11) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
 
INSERT INTO `t2` (`col1`) VALUES
(3);
 
UPDATE t1,t2 SET t1.col1=4 WHERE t1.col1=3 AND t1.col1=t2.col1; 
Error (1305): FUNCTION yop.yopyop does not exist 


Generated at Thu Feb 08 08:52:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.