sql-workbench/workbench
12
33
Fork
You've already forked workbench
18

Error when listing procedures in Redshift #52

Closed
opened 2024年07月10日 11:38:02 +02:00 by jpachon · 0 comments

When in the object tree explorer you select to view procedures of a specific schema, in addition to showing the procedures of that schema, it shows all the procedures of pg_catalog.

Reviewing the code I have detected what could be the problem, in the class: RedshiftUDFReader.java

@Override
 public DataStore getProcedures(String catalog, String schemaPattern, String procName)
 throws SQLException
 {
 DataStore jdbcResult = super.getProcedures(catalog, procName, procName);
 if (connection.getDbSettings().getBoolProperty("procedurereader.use.jdbc", true))
 {
 return jdbcResult;
 }

the code:

DataStore jdbcResult = super.getProcedures(catalog, procName, procName);

should be:

DataStore jdbcResult = super.getProcedures(catalog, schemaPattern, procName);

SqlWorkBench/J version: Build 131 (2024年05月05日 17:43)
Redshift JDBC Driver: redshift-jdbc42-2.1.0.29.jar

When in the object tree explorer you select to view procedures of a specific schema, in addition to showing the procedures of that schema, it shows all the procedures of _pg_catalog_. Reviewing the code I have detected what could be the problem, in the class: _RedshiftUDFReader.java_ ``` @Override public DataStore getProcedures(String catalog, String schemaPattern, String procName) throws SQLException { DataStore jdbcResult = super.getProcedures(catalog, procName, procName); if (connection.getDbSettings().getBoolProperty("procedurereader.use.jdbc", true)) { return jdbcResult; } ``` the code: ``` DataStore jdbcResult = super.getProcedures(catalog, procName, procName); ``` should be: ``` DataStore jdbcResult = super.getProcedures(catalog, schemaPattern, procName); ``` SqlWorkBench/J version: Build 131 (2024年05月05日 17:43) Redshift JDBC Driver: redshift-jdbc42-2.1.0.29.jar
Sign in to join this conversation.
No Branch/Tag specified
master
build133
build132
build131
build130
build129
build128
build126
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
sql-workbench/workbench#52
Reference in a new issue
sql-workbench/workbench
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?