Skip to content
Permalink
Browse files

Get schema with the same name as user name in search path. See https:…

  • Loading branch information...
ansgarbecker committed Sep 14, 2019
1 parent d6373f2 commit 56474eaa1bc76def598acb2b8b664d7125ff7d1b
Showing with 3 additions and 0 deletions.
  1. +3 −0 source/dbconnection.pas
@@ -3178,6 +3178,9 @@ procedure TDBConnection.SetDatabase(Value: String);
end else begin
if FParameters.NetTypeGroup = ngPgSQL then begin
s := EscapeString(Value);
// Get schema with the same name as user name in search path
// See https://www.heidisql.com/forum.php?t=34558
s := s + ', ' + EscapeString('$user');
// Always keep public schema in search path, so one can use procedures from it without prefixing
// See http://www.heidisql.com/forum.php?t=18581#p18905
if Value <> 'public' then

0 comments on commit 56474ea

Please sign in to comment.
You can’t perform that action at this time.