should be it
This commit is contained in:
24
external/duckdb/test/sql/transactions/transaction_errors.test
vendored
Normal file
24
external/duckdb/test/sql/transactions/transaction_errors.test
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
# name: test/sql/transactions/transaction_errors.test
|
||||
# description: Error conditions of transactions
|
||||
# group: [transactions]
|
||||
|
||||
# nothing to rollback
|
||||
statement error
|
||||
ROLLBACK;
|
||||
----
|
||||
|
||||
# nothing to commit
|
||||
statement error
|
||||
COMMIT;
|
||||
----
|
||||
|
||||
statement ok
|
||||
BEGIN;
|
||||
|
||||
# cannot start a transaction in a transaction
|
||||
statement error
|
||||
BEGIN;
|
||||
----
|
||||
|
||||
statement ok
|
||||
ROLLBACK;
|
||||
Reference in New Issue
Block a user