Hi,
I have the following SQL script.
DELIMITER //
DROP TRIGGER IF EXISTS Trig_report_declaration_image_Before_Insert //
CREATE TRIGGER Trig_report_declaration_image_Before_Insert
BEFORE INSERT ON report_declaration
FOR EACH ROW
BEGIN
DECLARE ATabletID VARCHAR(45);
SELECT TabletID INTO ATabletID
FROM tablet;
SET new.TabletID = IFNULL(ATabletID, "");
END//
DROP TRIGGER IF EXISTS Trig_report_template_config_Before_Insert//
CREATE TRIGGER Trig_report_template_config_Before_Insert
BEFORE INSERT ON report_template_config
FOR EACH ROW
BEGIN
DECLARE ATabletID VARCHAR(45);
SELECT TabletID INTO ATabletID
FROM tablet;
SET new.TabletID = IFNULL(ATabletID, "");
END//
DROP TRIGGER IF EXISTS Trig_systemvalues_Before_Insert//
CREATE TRIGGER Trig_systemvalues_Before_Insert
BEFORE INSERT ON systemvalues
FOR EACH ROW
BEGIN
DECLARE ATabletID VARCHAR(45);
SELECT TabletID INTO ATabletID
FROM tablet;
SET new.TabletID = IFNULL(ATabletID, "");
END//
When i try to run it using AI i get the following error. {SQL_ERROR}: {SQL_STATE: 42000} you have an error in your SQL syntax....near 'DELIMITER //
DROP TRIGGER IF EXISTS Trig_report_declaration_image_before...' at line 1.
I am able to run the script in MySQL Query browsers and am using the following setting in AI
Statement Separator is BLANK
Strip Comment is unchecked
Run SQL Script at install
Script Condition 1
In case of error : Abort Installation
No Script replacements.
Any help is appreciated.
Thanks in advance
FOLLOW US
Get the latest news in Application Packaging