We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d37910 commit 376f283Copy full SHA for 376f283
src/main/java/io/r2dbc/postgresql/PostgresqlBatch.java
@@ -41,7 +41,7 @@ final class PostgresqlBatch implements io.r2dbc.postgresql.api.PostgresqlBatch {
41
public PostgresqlBatch add(String sql) {
42
Assert.requireNonNull(sql, "sql must not be null");
43
44
- if (!(BasicPostgresqlSqlLexer.tokenize(sql).getParameterCount() > 0)) {
+ if (!(BasicPostgresqlSqlLexer.tokenize(sql).getParameterCount() == 0)) {
45
throw new IllegalArgumentException(String.format("Statement '%s' is not supported. This is often due to the presence of parameters.", sql));
46
}
47
0 commit comments