Skip to content

Commit 3b117c0

Browse files
srozsnyaiolavloite
andauthored
fix:Fixed transaction tagging and reset datafaker version (#1777)
Co-authored-by: Knut Olav Løite <[email protected]>
1 parent dcebfff commit 3b117c0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

samples/quickperf/pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<dependency>
3939
<groupId>net.datafaker</groupId>
4040
<artifactId>datafaker</artifactId>
41-
<version>2.4.0</version>
41+
<version>1.7.0</version>
4242
</dependency>
4343
<dependency>
4444
<groupId>com.google.cloud</groupId>

samples/quickperf/src/main/java/com/google/cloud/jdbc/quickperf/QuickPerfRunner.java

+3
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,9 @@ public void run() {
163163
boolean hasResults = statement.execute();
164164
if (!connection.getAutoCommit()) {
165165
connection.commit();
166+
connection
167+
.createStatement()
168+
.execute(String.format("SET %sTRANSACTION_TAG = '%s'", tagPrefix, config.DEFAULT_TAG));
166169
}
167170
long stop = System.nanoTime() - start;
168171

0 commit comments

Comments
 (0)