提交 5ca3cfe2 编写于 作者: S Serge Rider

#12378 PG: search_path update fix

上级 fffcd57b
......@@ -207,10 +207,11 @@ public class PostgreExecutionContext extends JDBCExecutionContext implements DBC
private void setSearchPath(DBRProgressMonitor monitor, String defSchemaName) throws DBCException {
List<String> newSearchPath = new ArrayList<>(getDefaultSearchPath());
int schemaIndex = newSearchPath.indexOf(defSchemaName);
if (schemaIndex == 0 || (schemaIndex == 1 && isUserFirstInPath(newSearchPath))) {
/*if (schemaIndex == 0 || (schemaIndex == 1 && isUserFirstInPath(newSearchPath))) {
// Already default schema
return;
} else {
} else*/
{
if (schemaIndex > 0) {
// Remove from previous position
newSearchPath.remove(schemaIndex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册