From febe3790637b719a0ca78f6616d03949ee8816b2 Mon Sep 17 00:00:00 2001
From: Eric Enzler <92583189+ETHenzlere@users.noreply.github.com>
Date: Wed, 17 Jan 2024 18:30:08 +0100
Subject: [PATCH] Fix: Changed INSERT statements of templated benchmarks (#447)
INSERT query was not working due to duplicate primary keys
Simple solutions on the query did not work for all systems
(For example _INSERT IGNORE, INSERT -- IF NOT EXISTS_).
For now I changed the table of the insert to one that does not have a
primary key.
This PR tries to solve #428
---
.../cockroachdb/sample_templated_config.xml | 4 +---
config/mariadb/sample_templated_config.xml | 4 +---
config/mysql/sample_templated_config.xml | 4 +---
config/oracle/sample_templated_config.xml | 4 +---
config/postgres/sample_templated_config.xml | 4 +---
config/sqlite/sample_templated_config.xml | 4 +---
config/sqlserver/sample_templated_config.xml | 4 +---
data/templated/example.xml | 22 +++++++++++--------
8 files changed, 20 insertions(+), 30 deletions(-)
diff --git a/config/cockroachdb/sample_templated_config.xml b/config/cockroachdb/sample_templated_config.xml
index 8f0e31630..b7dca724e 100644
--- a/config/cockroachdb/sample_templated_config.xml
+++ b/config/cockroachdb/sample_templated_config.xml
@@ -24,7 +24,7 @@
100
- 20,20,10,10,10,10,10
+ 20,20,10,10,10,10,10,10
@@ -51,10 +51,8 @@
DeleteItem
-
diff --git a/config/mariadb/sample_templated_config.xml b/config/mariadb/sample_templated_config.xml
index 1f74ac859..ac836639f 100644
--- a/config/mariadb/sample_templated_config.xml
+++ b/config/mariadb/sample_templated_config.xml
@@ -25,7 +25,7 @@
100
- 20,20,10,10,10,10,10
+ 20,20,10,10,10,10,10,10
@@ -52,10 +52,8 @@
DeleteItem
-
diff --git a/config/mysql/sample_templated_config.xml b/config/mysql/sample_templated_config.xml
index c58efb0de..db54cd1d8 100644
--- a/config/mysql/sample_templated_config.xml
+++ b/config/mysql/sample_templated_config.xml
@@ -25,7 +25,7 @@
100
- 20,20,10,10,10,10,10
+ 20,20,10,10,10,10,10,10
@@ -52,10 +52,8 @@
DeleteItem
-
diff --git a/config/oracle/sample_templated_config.xml b/config/oracle/sample_templated_config.xml
index 57a828487..a10605fee 100644
--- a/config/oracle/sample_templated_config.xml
+++ b/config/oracle/sample_templated_config.xml
@@ -25,7 +25,7 @@
100
- 20,20,10,10,10,10,10
+ 20,20,10,10,10,10,10,10
@@ -52,10 +52,8 @@
DeleteItem
-
diff --git a/config/postgres/sample_templated_config.xml b/config/postgres/sample_templated_config.xml
index 25cc68739..51a701d58 100644
--- a/config/postgres/sample_templated_config.xml
+++ b/config/postgres/sample_templated_config.xml
@@ -25,7 +25,7 @@
100
- 20,20,10,10,10,10,10
+ 20,20,10,10,10,10,10,10
@@ -52,10 +52,8 @@
DeleteItem
-
diff --git a/config/sqlite/sample_templated_config.xml b/config/sqlite/sample_templated_config.xml
index 8b2c8ecbf..a3b5b5f7f 100644
--- a/config/sqlite/sample_templated_config.xml
+++ b/config/sqlite/sample_templated_config.xml
@@ -22,7 +22,7 @@
100
- 20,20,10,10,10,10,10
+ 20,20,10,10,10,10,10,10
@@ -49,10 +49,8 @@
DeleteItem
-
diff --git a/config/sqlserver/sample_templated_config.xml b/config/sqlserver/sample_templated_config.xml
index 1899addae..37a418d44 100644
--- a/config/sqlserver/sample_templated_config.xml
+++ b/config/sqlserver/sample_templated_config.xml
@@ -25,7 +25,7 @@
100
- 20,20,10,10,10,10,10
+ 20,20,10,10,10,10,10,10
@@ -52,10 +52,8 @@
DeleteItem
-
diff --git a/data/templated/example.xml b/data/templated/example.xml
index cdb506782..4051b8a7b 100644
--- a/data/templated/example.xml
+++ b/data/templated/example.xml
@@ -79,23 +79,27 @@
255.0
-
\ No newline at end of file