Get schema with the same name as user name in search path. See https://www.heidisql.com/forum.php?t=34558

This commit is contained in:
Ansgar Becker
2019-09-14 15:27:05 +02:00
parent d6373f2c38
commit 56474eaa1b

View File

@ -3178,6 +3178,9 @@ begin
end else begin end else begin
if FParameters.NetTypeGroup = ngPgSQL then begin if FParameters.NetTypeGroup = ngPgSQL then begin
s := EscapeString(Value); 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 // 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 // See http://www.heidisql.com/forum.php?t=18581#p18905
if Value <> 'public' then if Value <> 'public' then