mysqldude
Error codes › 1766

MySQL & MariaDB error 1766 ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION

MySQLThe system variable … cannot be set when there is an ongoing transaction.
MariaDBThe system variable … cannot be set when there is an ongoing transaction
MySQLMariaDB
SymbolER_VARIABLE_NOT_SETTABLE_IN_TRANSACTIONER_VARIABLE_NOT_SETTABLE_IN_TRANSACTION
SQLSTATEHY000HY000
TypeServer errorServer error
Versionssince 5.6.51 activesince 10.0.38 active
How the message changed between versions
MariaDB fromSymbolMessage
10.0.38ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTIONThe system variable %.200s cannot be set when there is an ongoing transaction.
10.2.44ER_VARIABLE_NOT_SETTABLE_IN_TRANSACTIONThe system variable %.200s cannot be set when there is an ongoing transaction