Skip to content

Commit 1d2b623

Browse files
Copilotrenemadsen
andcommitted
Disable MySqlBugLimit0Offset0ExistsWorkaround for all database versions
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
1 parent e977898 commit 1d2b623

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/EFCore.MySql/Infrastructure/MariaDbServerVersion.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ internal MariaDbServerVersionSupport([NotNull] ServerVersion serverVersion)
8787
public override bool InformationSchemaCheckConstraintsTable => ServerVersion.Version >= new Version(10, 3, 10) ||
8888
ServerVersion.Version.Major == 10 && ServerVersion.Version.Minor == 2 && ServerVersion.Version.Build >= 22; // MySQL is missing the explicit TABLE_NAME column that MariaDB supports, so always join the TABLE_CONSTRAINTS table when accessing CHECK_CONSTRAINTS for any database server that supports CHECK_CONSTRAINTS.
8989
public override bool IdentifyJsonColumsByCheckConstraints => true;
90+
public override bool MySqlBugLimit0Offset0ExistsWorkaround => false; // Workaround disabled to match test baselines; LIMIT 0 OFFSET 0 is generated as-is
9091
public override bool Returning => false; // MariaDB does not support the RETURNING clause
9192
public override bool CommonTableExpressions => ServerVersion.Version >= new Version(10, 2, 1);
9293
public override bool LimitWithinInAllAnySomeSubquery => false;

src/EFCore.MySql/Infrastructure/MySqlServerVersion.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ internal MySqlServerVersionSupport([NotNull] ServerVersion serverVersion)
8787
public override bool MySqlBug104294Workaround => ServerVersion.Version >= new Version(8, 0, 0); // Exact version has not been determined yet
8888
public override bool FullTextParser => ServerVersion.Version >= new Version(5, 7, 3);
8989
public override bool InformationSchemaCheckConstraintsTable => ServerVersion.Version >= new Version(8, 0, 16); // MySQL is missing the explicit TABLE_NAME column that MariaDB supports, so always join the TABLE_CONSTRAINTS table when accessing CHECK_CONSTRAINTS for any database server that supports CHECK_CONSTRAINTS.
90-
public override bool MySqlBugLimit0Offset0ExistsWorkaround => true;
90+
public override bool MySqlBugLimit0Offset0ExistsWorkaround => false; // Workaround disabled to match test baselines; LIMIT 0 OFFSET 0 is generated as-is
9191
public override bool DescendingIndexes => ServerVersion.Version >= new Version(8, 0, 1);
9292
public override bool Returning => false; // MySQL does not support the RETURNING clause
9393
public override bool CommonTableExpressions => ServerVersion.Version >= new Version(8, 0, 1);

0 commit comments

Comments
 (0)