142142statement ok
143143BEGIN TRANSACTION
144144
145- statement error there is already a transaction in progress
145+ statement error pgcode 25001 there is already a transaction in progress
146146BEGIN TRANSACTION
147147
148148statement ok
@@ -156,10 +156,10 @@ BEGIN TRANSACTION
156156statement ok
157157UPDATE kv SET v = 'b' WHERE k in ('a')
158158
159- statement error there is already a transaction in progress
159+ statement error pgcode 25001 there is already a transaction in progress
160160BEGIN TRANSACTION
161161
162- statement error current transaction is aborted, commands ignored until end of transaction block
162+ statement error pgcode 25P02 current transaction is aborted, commands ignored until end of transaction block
163163SELECT * FROM kv
164164
165165statement ok
@@ -176,15 +176,15 @@ BEGIN; END
176176
177177# COMMIT/ROLLBACK without a transaction are errors.
178178
179- statement error there is no transaction in progress
179+ statement error pgcode 25P01 there is no transaction in progress
180180COMMIT TRANSACTION
181181
182- statement error there is no transaction in progress
182+ statement error pgcode 25P01 there is no transaction in progress
183183ROLLBACK TRANSACTION
184184
185185# Set isolation level without a transaction is an error.
186186
187- statement error there is no transaction in progress
187+ statement error pgcode 25P01 there is no transaction in progress
188188SET TRANSACTION ISOLATION LEVEL SNAPSHOT
189189
190190statement ok
@@ -393,7 +393,7 @@ COMMIT
393393
394394# User priority.
395395
396- statement error there is no transaction in progress
396+ statement error pgcode 25P01 there is no transaction in progress
397397SET TRANSACTION PRIORITY LOW
398398
399399statement ok
0 commit comments