Skip to content

Commit b681ebf

Browse files
committed
fix: trim away spaces around name of routine parameter silently
Refs #1369
1 parent 314db47 commit b681ebf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/routine_editor.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ function TfrmRoutineEditor.ComposeCreateStatement(NameOfObject: String): String;
555555
tmp := '';
556556
if ProcOrFunc = 'PROCEDURE' then
557557
tmp := tmp + Parameters[i].Context + ' ';
558-
tmp := tmp + DBObject.Connection.QuoteIdent(Parameters[i].Name) + ' ' + Parameters[i].Datatype;
558+
tmp := tmp + DBObject.Connection.QuoteIdent(Parameters[i].Name.Trim) + ' ' + Parameters[i].Datatype;
559559
Params.Add(tmp);
560560
end;
561561
if Params.Count > 0 then

0 commit comments

Comments
 (0)