Skip to content

Commit

Permalink
Release 2.2.1 (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
rainbowdashlabs authored Jun 20, 2024
2 parents c7dd962 + c8c9363 commit 83360b1
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 9 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.8-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
Expand Down
2 changes: 1 addition & 1 deletion gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
# Darwin, MinGW, and NonStop.
#
# (3) This script is generated from the Groovy template
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
# within the Gradle project.
#
# You can find Gradle at https://github.com/gradle/gradle/.
Expand Down
2 changes: 1 addition & 1 deletion sadu-examples/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ dependencies {
compileOnly(project(":sadu-postgresql"))

// database driver
compileOnly("org.xerial", "sqlite-jdbc", "3.45.3.0")
compileOnly("org.xerial", "sqlite-jdbc", "3.46.0.0")
compileOnly("org.postgresql", "postgresql", "42.7.3")
compileOnly("org.mariadb.jdbc", "mariadb-java-client", "3.4.0")
compileOnly("mysql", "mysql-connector-java", "8.0.33")
Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ private ParsedQueryImpl(QueryProvider query, TokenizedQuery sql) {
}

public static ParsedQueryImpl create(QueryProvider query, String sql, Object... format) {
return new ParsedQueryImpl(query, TokenizedQuery.create(sql.formatted(format)));
if (format.length != 0) {
return new ParsedQueryImpl(query, TokenizedQuery.create(sql.formatted(format)));
}
return new ParsedQueryImpl(query, TokenizedQuery.create(sql));
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ dependencyResolutionManagement {

library("driver-postgres", "org.postgresql:postgresql:42.7.3")
library("driver-mariadb", "org.mariadb.jdbc:mariadb-java-client:3.4.0")
library("driver-sqlite", "org.xerial:sqlite-jdbc:3.45.3.0")
library("driver-sqlite", "org.xerial:sqlite-jdbc:3.46.0.0")
library("driver-mysql", "com.mysql:mysql-connector-j:8.4.0")

bundle("database-postgres", listOf("testcontainers-junit", "testcontainers-core", "testcontainers-postgres", "driver-postgres"))
Expand Down

0 comments on commit 83360b1

Please sign in to comment.