mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Do not use translated combo box text for CREATE code, in routine editor. Fixes issue #3051.
This commit is contained in:
@ -519,7 +519,10 @@ var
|
||||
ProcOrFunc: String;
|
||||
i: Integer;
|
||||
begin
|
||||
ProcOrFunc := UpperCase(GetFirstWord(comboType.Text));
|
||||
case comboType.ItemIndex of
|
||||
0: ProcOrFunc := 'PROCEDURE';
|
||||
else ProcOrFunc := 'FUNCTION';
|
||||
end;
|
||||
Result := 'CREATE ';
|
||||
if comboDefiner.Text <> '' then
|
||||
Result := Result + 'DEFINER='+DBObject.Connection.QuoteIdent(comboDefiner.Text, True, '@')+' ';
|
||||
|
Reference in New Issue
Block a user