Skip to content

Commit

Permalink
Support session name in placeholders for filename. See http://www.hei…
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarbecker committed Oct 11, 2016
1 parent 6d04877 commit 0e6c3c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/helpers.pas
Expand Up @@ -2604,6 +2604,7 @@ function GetOutputFilename(FilenameWithPlaceholders: String; DBObj: TDBObject):
Arguments := TStringList.Create;

if Assigned(DBObj) then begin
Arguments.Values['session'] := goodfilename(DBObj.Connection.Parameters.SessionName);
Arguments.Values['host'] := goodfilename(DBObj.Connection.Parameters.Hostname);
Arguments.Values['u'] := goodfilename(DBObj.Connection.Parameters.Username);
Arguments.Values['db'] := goodfilename(DBObj.Database);
Expand All @@ -2629,6 +2630,7 @@ function GetOutputFilenamePlaceholders: TStringList;
begin
// Return a list with valid placeholder=>description pairs
Result := TStringList.Create;
Result.Values['session'] := _('Session name');
Result.Values['host'] := _('Hostname');
Result.Values['u'] := _('Username');
Result.Values['db'] := _('Database');
Expand Down

0 comments on commit 0e6c3c9

Please sign in to comment.