mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-26 19:20:17 +08:00
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:
@ -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
|
||||||
|
Reference in New Issue
Block a user