@@ -44,19 +44,19 @@ protected void run(GrpcTransport transport, String pathPrefix) {
44
44
TableTransaction transaction = session .beginTransaction (TxMode .SERIALIZABLE_RW )
45
45
.join ().getValue ();
46
46
47
- String query1 = "UPSERT INTO [ " + tablePath + "] (key, value) VALUES (1, 'one');" ;
47
+ String query1 = "UPSERT INTO ` " + tablePath + "` (key, value) VALUES (1, 'one');" ;
48
48
DataQueryResult result1 = transaction .executeDataQuery (query1 ).join ().getValue ();
49
49
System .out .println ("--[insert1]-------------------" );
50
50
DataQueryResults .print (result1 );
51
51
System .out .println ("------------------------------" );
52
52
53
- String query2 = "UPSERT INTO [ " + tablePath + "] (key, value) VALUES (2, 'two');" ;
53
+ String query2 = "UPSERT INTO ` " + tablePath + "` (key, value) VALUES (2, 'two');" ;
54
54
DataQueryResult result2 = transaction .executeDataQuery (query2 ).join ().getValue ();
55
55
System .out .println ("--[insert2]-------------------" );
56
56
DataQueryResults .print (result2 );
57
57
System .out .println ("------------------------------" );
58
58
59
- String query3 = "SELECT * FROM [ " + tablePath + "] ;" ;
59
+ String query3 = "SELECT * FROM ` " + tablePath + "` ;" ;
60
60
DataQueryResult result3 = session .executeDataQuery (query3 , TxControl .onlineRo ().setCommitTx (true ))
61
61
.join ()
62
62
.getValue ();
@@ -68,7 +68,7 @@ protected void run(GrpcTransport transport, String pathPrefix) {
68
68
.join ()
69
69
.expectSuccess ("cannot commit transaction" );
70
70
71
- String query = "SELECT * FROM [ " + tablePath + "] ;" ;
71
+ String query = "SELECT * FROM ` " + tablePath + "` ;" ;
72
72
DataQueryResult result = session .executeDataQuery (query , TxControl .onlineRo ().setCommitTx (true ))
73
73
.join ()
74
74
.getValue ();
@@ -81,4 +81,9 @@ protected void run(GrpcTransport transport, String pathPrefix) {
81
81
public static void main (String [] args ) {
82
82
new ComplexTransaction ().doMain (args );
83
83
}
84
+
85
+ public static int test (String [] args ) {
86
+ new ComplexTransaction ().doMain (args );
87
+ return 0 ;
88
+ }
84
89
}
0 commit comments