Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch wrong search path creation on postgresql #185

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,22 @@ public <V> PostgreSqlJdbc addParameter(String key, V value) {
* Specify the schema or several schema to be set in the search-path. This schema will be used to resolve
* unqualified object names used in statements over this connection.
*
* @param schema the default schema
* @param schemas additionally used schemas
* @param schemas default schemas
* @return builder instance
*/
public PostgreSqlJdbc currentSchema(String schema, String... schemas) {
return addParameter("currentSchema", String.join(",", schema, String.join(",")));
public PostgreSqlJdbc currentSchema(String... schemas) {
return addParameter("currentSchema", String.join(",", schemas));
}

/**
* Specify the schema or several schema to be set in the search-path. This schema will be used to resolve
* unqualified object names used in statements over this connection.
*
* @param schema the default schema
* @return builder instance
*/
public PostgreSqlJdbc currentSchema(String schema) {
return currentSchema(new String[]{schema});
}

/**
Expand Down