Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e22857c

Browse files
committedOct 7, 2024·
fix:Fixed transaction tagging and reset datafaker version
1 parent 40bfed5 commit e22857c

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.3.1</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)
Please sign in to comment.