diff --git a/samples/quickperf/pom.xml b/samples/quickperf/pom.xml index e4cfbb20b..d7c368de3 100644 --- a/samples/quickperf/pom.xml +++ b/samples/quickperf/pom.xml @@ -38,7 +38,7 @@ net.datafaker datafaker - 2.4.0 + 1.7.0 com.google.cloud diff --git a/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java b/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java index 84e2bc9ac..6b91fa1c8 100644 --- a/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java +++ b/samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java @@ -163,6 +163,9 @@ public void run() { boolean hasResults = statement.execute(); if (!connection.getAutoCommit()) { connection.commit(); + connection + .createStatement() + .execute(String.format("SET %sTRANSACTION_TAG = '%s'", tagPrefix, config.DEFAULT_TAG)); } long stop = System.nanoTime() - start;