diff --git a/infobip-spring-data-common/pom.xml b/infobip-spring-data-common/pom.xml
index 404a5b2..99c43f4 100644
--- a/infobip-spring-data-common/pom.xml
+++ b/infobip-spring-data-common/pom.xml
@@ -5,7 +5,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-common
diff --git a/infobip-spring-data-jdbc-annotation-processor-common/pom.xml b/infobip-spring-data-jdbc-annotation-processor-common/pom.xml
index 92fdba2..09bc84b 100644
--- a/infobip-spring-data-jdbc-annotation-processor-common/pom.xml
+++ b/infobip-spring-data-jdbc-annotation-processor-common/pom.xml
@@ -5,7 +5,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-jdbc-annotation-processor-common
diff --git a/infobip-spring-data-jdbc-annotation-processor/pom.xml b/infobip-spring-data-jdbc-annotation-processor/pom.xml
index 77da74c..4601183 100644
--- a/infobip-spring-data-jdbc-annotation-processor/pom.xml
+++ b/infobip-spring-data-jdbc-annotation-processor/pom.xml
@@ -5,7 +5,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-jdbc-annotation-processor
diff --git a/infobip-spring-data-jdbc-querydsl-boot-starter/pom.xml b/infobip-spring-data-jdbc-querydsl-boot-starter/pom.xml
index d82381c..02602c0 100644
--- a/infobip-spring-data-jdbc-querydsl-boot-starter/pom.xml
+++ b/infobip-spring-data-jdbc-querydsl-boot-starter/pom.xml
@@ -5,7 +5,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-jdbc-querydsl-boot-starter
diff --git a/infobip-spring-data-jdbc-querydsl/pom.xml b/infobip-spring-data-jdbc-querydsl/pom.xml
index 24e2202..b48a916 100644
--- a/infobip-spring-data-jdbc-querydsl/pom.xml
+++ b/infobip-spring-data-jdbc-querydsl/pom.xml
@@ -6,7 +6,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-jdbc-querydsl
diff --git a/infobip-spring-data-jpa-querydsl-boot-starter/pom.xml b/infobip-spring-data-jpa-querydsl-boot-starter/pom.xml
index 5d078ab..870ff09 100644
--- a/infobip-spring-data-jpa-querydsl-boot-starter/pom.xml
+++ b/infobip-spring-data-jpa-querydsl-boot-starter/pom.xml
@@ -5,7 +5,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-jpa-querydsl-boot-starter
diff --git a/infobip-spring-data-jpa-querydsl/pom.xml b/infobip-spring-data-jpa-querydsl/pom.xml
index 1647eff..c6f05f6 100644
--- a/infobip-spring-data-jpa-querydsl/pom.xml
+++ b/infobip-spring-data-jpa-querydsl/pom.xml
@@ -5,7 +5,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-jpa-querydsl
diff --git a/infobip-spring-data-r2dbc-querydsl-boot-starter/pom.xml b/infobip-spring-data-r2dbc-querydsl-boot-starter/pom.xml
index adb69af..26cb358 100644
--- a/infobip-spring-data-r2dbc-querydsl-boot-starter/pom.xml
+++ b/infobip-spring-data-r2dbc-querydsl-boot-starter/pom.xml
@@ -5,7 +5,7 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-r2dbc-querydsl-boot-starter
diff --git a/infobip-spring-data-r2dbc-querydsl/pom.xml b/infobip-spring-data-r2dbc-querydsl/pom.xml
index 608cdac..8f1876f 100644
--- a/infobip-spring-data-r2dbc-querydsl/pom.xml
+++ b/infobip-spring-data-r2dbc-querydsl/pom.xml
@@ -6,11 +6,15 @@
com.infobip
infobip-spring-data-querydsl
- 9.0.6
+ 9.0.7-SNAPSHOT
infobip-spring-data-r2dbc-querydsl
+
+ 2.1.13
+
+
${project.groupId}
@@ -51,6 +55,12 @@
true
+
+ org.flywaydb
+ flyway-mysql
+ true
+
+
io.r2dbc
@@ -69,5 +79,25 @@
HikariCP
test
+
+
+ com.mysql
+ mysql-connector-j
+ test
+
+
+
+ com.github.jasync-sql
+ jasync-r2dbc-mysql
+ ${jasync-r2dbc-mysql.version}
+ test
+
+
+
+ com.infobip
+ infobip-mysql-testcontainers-spring-boot-starter
+ ${infobip-testcontainers.version}
+ test
+
diff --git a/infobip-spring-data-r2dbc-querydsl/src/main/java/com/infobip/spring/data/r2dbc/QuerydslParameterBinder.java b/infobip-spring-data-r2dbc-querydsl/src/main/java/com/infobip/spring/data/r2dbc/QuerydslParameterBinder.java
index 39c39b4..eb56061 100644
--- a/infobip-spring-data-r2dbc-querydsl/src/main/java/com/infobip/spring/data/r2dbc/QuerydslParameterBinder.java
+++ b/infobip-spring-data-r2dbc-querydsl/src/main/java/com/infobip/spring/data/r2dbc/QuerydslParameterBinder.java
@@ -1,5 +1,7 @@
package com.infobip.spring.data.r2dbc;
+import com.querydsl.sql.MySQLTemplates;
+import com.querydsl.sql.SQLTemplates;
import io.r2dbc.spi.Parameters;
import org.springframework.r2dbc.core.DatabaseClient;
import org.springframework.r2dbc.core.binding.BindMarkersFactory;
@@ -9,12 +11,33 @@
class QuerydslParameterBinder {
private final BindMarkersFactory bindMarkersFactory;
+ private final boolean useNumberedBindParameters;
- QuerydslParameterBinder(BindMarkersFactory bindMarkersFactory) {
+ QuerydslParameterBinder(BindMarkersFactory bindMarkersFactory, SQLTemplates sqlTemplates) {
this.bindMarkersFactory = bindMarkersFactory;
+ this.useNumberedBindParameters = resolve(sqlTemplates);
+ }
+
+ private boolean resolve(SQLTemplates sqlTemplates) {
+
+ if(sqlTemplates instanceof MySQLTemplates) {
+ return true;
+ }
+
+ return false;
}
DatabaseClient.GenericExecuteSpec bind(DatabaseClient databaseClient, List