SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
[11.0.12 Beta] - Hesitant formatting

 
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant View previous topic
View next topic
[11.0.12 Beta] - Hesitant formatting
Author Message
gemisigo



Joined: 11 Mar 2010
Posts: 2112

Post [11.0.12 Beta] - Hesitant formatting Reply with quote
Formatting seems to be a bit "hesitant".

I have the following formatting rule for MariaDB:
Code:

CREATE ... PROCEDURE ...
(
   ...
   ,...
)
   ...
f:BEGIN
   <stmtList>
END;


It takes the following code:
Code:

DROP PROCEDURE IF EXISTS `usp_get_user_by_id`;

DELIMITER $$$

CREATE PROCEDURE `usp_get_user_by_id`
(
)
f:
BEGIN
END;$$$

DELIMITER ;



On its first run, SA code formatting transforms the above code into this:
Code:

DROP PROCEDURE IF EXISTS `usp_get_user_by_id`;

DELIMITER $$$

CREATE PROCEDURE `usp_get_user_by_id`
(
)
   f:BEGIN
END;$$$

DELIMITER ;



Running it one more time produces the desired format:
Code:

DROP PROCEDURE IF EXISTS `usp_get_user_by_id`;

DELIMITER $$$

CREATE PROCEDURE `usp_get_user_by_id`
(
)
f:BEGIN
END;$$$

DELIMITER ;


Any consecutive runs make no further changes to the code. Shouldn't it yield the second result on its first run?
Fri Jul 19, 2019 9:17 am View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » SQL Assistant All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.