I am currently evaluating different product to automate our windows installer build for our product. So far, it does almost everything we need and the IDE makes it very easy to achieve that. Unfortunately, there is one thing I didn't figured out yet.... is running my MySQL scripts that creates Stored Procedure (Routine) with the provided MySQL plugin bundled in InstallAware 9 (Build Moya.sp1.070409).
Here is shorter version of my script that works when executed from MySQL Query Browser but not from inside InstallAware MySQL plugin :
Code: Select all
USE myDb;
DELIMITER //
DROP PROCEDURE IF EXISTS `DropFK`//
CREATE PROCEDURE `DropFK`(IN fk VARCHAR(100), IN tbl VARCHAR(100))
BEGIN
IF EXISTS (SELECT NULL FROM INFORMATION_SCHEMA.TABLE_CONSTRAINTS
WHERE CONSTRAINT_SCHEMA = DATABASE() AND CONSTRAINT_NAME = fk) THEN
SET @s = concat("ALTER TABLE ",tbl," DROP FOREIGN KEY ", fk);
PREPARE stmt FROM @s;
EXECUTE stmt;
DEALLOCATE PREPARE stmt;
END IF;
END//
DELIMITER ;
All other scripts that do normal statement and doesn't requires modifying the MySQL default DELIMITER from ; to something else like // works fine.
Is this something the plugin doesn't support? Or do I need to create my store proc differently / workaround ?
Thanks in advance,
Antoine

