Transaction statement cannot include create database?

When I create a database in a transaction statement, the following error occurred:

CREATE DATABASE IF NOT EXISTS test, err:schema change statement cannot follow a statement that has written in the same transaction: transaction anchor key already set

Is this a bug or a specification constraint?


@Bobo it depends on the contents of the transaction. Can you post it in its entirety?