Once the DELIMITER is changed to something other than semicolon, the new delimiter should be used in place of the semicolon.
For example:
DELIMITER $$
-- IMPORTANT: Change to ecom_prod
USE ecom_dev$$
DROP PROCEDURE IF EXISTS `usp_getDetails`$$
DELIMITER ;
I'm not sure how your code is working with the semicolons. I don't think the issue has anything to do with the comments. But I haven't tested it. I always have a blank line preceding and following DELIMITER. And the only time I ever use DELIMITER
is when I'm issuing a CREATE <stored_program_type>
.