[Bug] Saving function/stored procedure adds linefeed to end of parameters in CREATE code

[expired user #8914]'s profile image [expired user #8914] posted 7 years ago in General Permalink

I noticed that the current version of HeidiSQL has a bug that adds a linefeed to the end of the parameter list for stored procedures and functions each time you save a change, like so:

CREATE DEFINER=`test`@`%` PROCEDURE `sp_test`(
    IN `test_id` INT,
    IN `other_id` INT

)

It's a relatively minor issue, since it only impacts formatting, not functionality, but it can make procedures look awkward as they're modified over time, when you end up with 10 or 20 blank lines following your parameter list.

Please login to leave a reply, or register at first.