You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATE TRIGGER ins_transaction BEFORE INSERT ON account
FOR EACH ROW PRECEDES ins_sum
SET
@deposits = @deposits + IF(NEW.amount>0,NEW.amount,0),
@withdrawals = @withdrawals + IF(NEW.amount<0,-NEW.amount,0);
CREATE TABLE test.account (
id INT AUTO_INCREMENT PRIMARY KEY,
account_number VARCHAR(20) NOT NULL,
amount DECIMAL(10, 2) NOT NULL
);
Debezium translates the DDL
to the following format
CREATE DEFINER=`root`@`%` TRIGGER ins_transaction BEFORE INSERT ON account
FOR EACH ROW
SET
@deposits = @deposits + IF(NEW.amount>0,NEW.amount,0),
@withdrawals = @withdrawals + IF(NEW.amount<0,-NEW.amount,0)```
CREATE TRIGGER
MySQL DDL are not translated to clickhouse.CREATE TRIGGER
DDL.The text was updated successfully, but these errors were encountered: