@@ -71,7 +71,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
7171 {[]types.ColumnImage {getColumnImage ("id" , 2 ), getColumnImage ("userId" , "user2" )}},
7272 },
7373 },
74- "test_name :1_user1,2_user2" ,
74+ "TEST_NAME :1_user1,2_user2" ,
7575 },
7676 {
7777 "Three Primary Keys" ,
@@ -89,7 +89,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
8989 {[]types.ColumnImage {getColumnImage ("id" , 3 ), getColumnImage ("userId" , "three" ), getColumnImage ("age" , "33" )}},
9090 },
9191 },
92- "test2_name :1_one_11,2_two_22,3_three_33" ,
92+ "TEST2_NAME :1_one_11,2_two_22,3_three_33" ,
9393 },
9494 {
9595 name : "Single Primary Key" ,
@@ -105,7 +105,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
105105 {Columns : []types.ColumnImage {getColumnImage ("id" , 100 )}},
106106 },
107107 },
108- expected : "single_key :100" ,
108+ expected : "SINGLE_KEY :100" ,
109109 },
110110 {
111111 name : "Mixed Type Keys" ,
@@ -121,7 +121,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
121121 {Columns : []types.ColumnImage {getColumnImage ("name" , "mike" ), getColumnImage ("age" , 25 )}},
122122 },
123123 },
124- expected : "mixed_key :mike_25" ,
124+ expected : "MIXED_KEY :mike_25" ,
125125 },
126126 {
127127 name : "Empty Records" ,
@@ -132,7 +132,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
132132 },
133133 },
134134 records : types.RecordImage {TableName : "empty" },
135- expected : "empty :" ,
135+ expected : "EMPTY :" ,
136136 },
137137 {
138138 name : "Special Characters" ,
@@ -148,7 +148,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
148148 {Columns : []types.ColumnImage {getColumnImage ("id" , "A,b_c" )}},
149149 },
150150 },
151- expected : "special :A,b_c" ,
151+ expected : "SPECIAL :A,b_c" ,
152152 },
153153 {
154154 name : "Non-existent Key Name" ,
@@ -164,7 +164,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
164164 {Columns : []types.ColumnImage {getColumnImage ("id" , 1 )}},
165165 },
166166 },
167- expected : "error_key :" ,
167+ expected : "ERROR_KEY :" ,
168168 },
169169 {
170170 name : "Multiple Rows With Nil PK Value" ,
@@ -182,7 +182,7 @@ func TestBaseExecBuildLockKey(t *testing.T) {
182182 {Columns : []types.ColumnImage {getColumnImage ("id" , nil )}},
183183 },
184184 },
185- expected : "nil_pk :,123," ,
185+ expected : "NIL_PK :,123," ,
186186 },
187187 {
188188 name : "PK As Bool And Float" ,
@@ -199,10 +199,9 @@ func TestBaseExecBuildLockKey(t *testing.T) {
199199 {Columns : []types.ColumnImage {getColumnImage ("name" , false ), getColumnImage ("age" , 0.0 )}},
200200 },
201201 },
202- expected : "type_pk :true_3.14,false_0" ,
202+ expected : "TYPE_PK :true_3.14,false_0" ,
203203 },
204204 }
205-
206205 for _ , tt := range tests {
207206 t .Run (tt .name , func (t * testing.T ) {
208207 lockKeys := exec .buildLockKey (& tt .records , tt .metaData )
0 commit comments