Pearl1594 commented on pull request #5848:
URL: https://github.com/apache/cloudstack/pull/5848#issuecomment-1073825004


   @DK101010 I had faced a similar issue - it seems to be related to the 
semi-colons. This should probably help:
   
   ```
   CREATE PROCEDURE `cloud`.`create_external_uuid_in_volumes`()
   BEGIN
     SELECT count(*) INTO @count FROM INFORMATION_SCHEMA.COLUMNS WHERE 
table_name = 'volumes' AND table_schema='cloud' AND column_name = 
'external_uuid'
   ; IF @count < 1 THEN ALTER TABLE cloud.volumes ADD COLUMN external_uuid 
VARCHAR(40) DEFAULT null
   ; END IF
   ; END ;
   
   CALL `cloud`.`create_external_uuid_in_volumes`();
   DROP PROCEDURE IF EXISTS `cloud`.`create_external_uuid_in_volumes`;
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to