﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
34852	Django Unit Tests break when using replicated MySQL Cluster v8.0.28	Aaron Blair	Can Huynh	"When running unit tests, the internal testing of a db for using transactions breaks when using MySQL Cluster server v8.0.28 because that db version requires a primary key for tables, and this line in https://github.com/django/django/blob/main/django/db/backends/base/features.py breaks it :


{{{
    @cached_property
    def supports_transactions(self):
        """"""Confirm support for transactions.""""""
        with self.connection.cursor() as cursor:
            cursor.execute(""CREATE TABLE ROLLBACK_TEST (X INT)"")
}}}


We have been patch-fixing that file as follows:

<-             cursor.execute(""CREATE TABLE ROLLBACK_TEST (X INT PRIMARY KEY)"")
---
->             cursor.execute(""CREATE TABLE ROLLBACK_TEST (X INT)"")"	Bug	closed	Testing framework	4.1	Normal	invalid	Test MySQL Cluster	Pieter Cardillo Kwok	Unreviewed	0	0	0	0	0	0
