-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bug#35507223 MySQL Server crashes when executing query
ISSUE ===== The expression ~NO_ACCESS was being used to provide an "all access" ACL bitmask. This usage was successful when an ACL bitmask was a 32 bit value, but can cause problems now an ACL bitmask is a 64 bit value (on Linux, not on Windows) as ~NO_ACCESS produces a value with the high order 32 bits set. SOLUTION ======== Make the type of all ACL bitmask variables explicitly 32 bits, by changing the relevant bitmask variable types from ulong to uint32_t. Change-Id: I7abe9ac400490de1d855a23ff5ced1c9124f1453
- Loading branch information
Daniel Blanchard
committed
Apr 29, 2024
1 parent
75acf5e
commit 3a27636
Showing
47 changed files
with
697 additions
and
576 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
CREATE TABLE v0(c1 INT); | ||
CREATE TABLE IF NOT EXISTS v2 ( CHECK ( c1 IN ( SELECT DISTINCT * FROM ( v0 a3 ) CROSS JOIN ( v0 ) ON c1 WHERE c1 ) ) ) TABLE v0 ; | ||
ERROR 23000: Column 'c1' in field list is ambiguous | ||
DROP TABLE v0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
CREATE TABLE v0(c1 INT); | ||
# Expect an error | ||
# ERROR: 1052 (23000): Column 'c1' in field list is ambiguous | ||
--error ER_NON_UNIQ_ERROR | ||
CREATE TABLE IF NOT EXISTS v2 ( CHECK ( c1 IN ( SELECT DISTINCT * FROM ( v0 a3 ) CROSS JOIN ( v0 ) ON c1 WHERE c1 ) ) ) TABLE v0 ; | ||
DROP TABLE v0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.