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;
|
ProcOrFunc: String;
|
||||||
i: Integer;
|
i: Integer;
|
||||||
begin
|
begin
|
||||||
ProcOrFunc := UpperCase(GetFirstWord(comboType.Text));
|
case comboType.ItemIndex of
|
||||||
|
0: ProcOrFunc := 'PROCEDURE';
|
||||||
|
else ProcOrFunc := 'FUNCTION';
|
||||||
|
end;
|
||||||
Result := 'CREATE ';
|
Result := 'CREATE ';
|
||||||
if comboDefiner.Text <> '' then
|
if comboDefiner.Text <> '' then
|
||||||
Result := Result + 'DEFINER='+DBObject.Connection.QuoteIdent(comboDefiner.Text, True, '@')+' ';
|
Result := Result + 'DEFINER='+DBObject.Connection.QuoteIdent(comboDefiner.Text, True, '@')+' ';
|
||||||
|
Reference in New Issue
Block a user