mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-31608 - Connector/NET fails to connect since 10.10
Connector/NET does not expect collation IDs returned by "show collations" to be NULL, runs into an exception. The fix is to determine connector/net using its connection attributes, then make sure "show collations" does not output NULL IDs. The patch introduces new old_mode NO_NULL_COLLATION_IDs, that is automatically set, once MySQL Connector/NET connection is determined. A test was added, that uses MySql.Data from powershell - only works if MySql.Data is installed into GAC (i.e with C/NET MSI package)
This commit is contained in:
@@ -114,8 +114,8 @@ SET @@global.old_mode = 4;
|
||||
SELECT @@global.old_mode;
|
||||
@@global.old_mode
|
||||
ZERO_DATE_TIME_CAST
|
||||
SET @@global.old_mode = 64;
|
||||
ERROR 42000: Variable 'old_mode' can't be set to the value of '64'
|
||||
SET @@global.old_mode = 128;
|
||||
ERROR 42000: Variable 'old_mode' can't be set to the value of '128'
|
||||
SELECT @@global.old_mode;
|
||||
@@global.old_mode
|
||||
ZERO_DATE_TIME_CAST
|
||||
|
Reference in New Issue
Block a user