mariadb/client
Vladislav Vaintroub f2eda61579 MDEV-33616 workaround libmariadb bug : mysql_errno = 0 on failed connection
The bug can happens on macOS, if server closes the socket without sending
error packet to client. Closing the socket on server side is legitimate,
and happen e.g when write timeout occurs, perhaps also other situations.

However mysqltest is not prepared to handle mysql_errno 0, and erroneously
thinks connection was successfully established.

The fix/workaround in mysqltest is to treat client failure with
mysql_errno 0 the same as CR_SERVER_LOST (generic client-side
communication error)

The real fix in client library would ensure that mysql_errno is set
on errors.
2024-06-11 09:15:32 +02:00
..
async_example.c
client_metadata.h MDEV-17832 Protocol: extensions for Pluggable types and JSON, GEOMETRY 2020-03-10 20:43:32 +04:00
client_priv.h cleanup: unused OPT_xxx and client_priv.h 2024-05-06 17:16:10 +02:00
CMakeLists.txt MDEV-33876 CMake, zlib - use names compatible with official FindZLIB.cmake 2024-05-03 21:48:47 +02:00
completion_hash.cc Merge 10.4 into 10.5 2020-11-03 16:24:47 +02:00
completion_hash.h Update FSF Address 2019-05-11 21:29:06 +03:00
echo.c Fix typos in the codebase. 2022-08-09 18:41:09 +03:00
mariadb-conv.cc Added 'const' to arguments in get_one_option and find_typeset() 2021-02-08 12:16:29 +02:00
my_readline.h Update FSF Address 2019-05-11 21:29:06 +03:00
mysql.cc MDEV-34203 Sandbox mode \- is not compatible with --binary-mode 2024-06-07 14:07:54 +02:00
mysql_plugin.c MDEV-34266 safe_strcpy() includes an unnecessary conditional branch 2024-06-07 19:24:36 +03:00
mysql_upgrade.c cleanup: unused OPT_xxx and client_priv.h 2024-05-06 17:16:10 +02:00
mysqladmin.cc Fix Various Typos 2024-05-28 11:31:49 +10:00
mysqlbinlog.cc cleanup: unused OPT_xxx and client_priv.h 2024-05-06 17:16:10 +02:00
mysqlcheck.c cleanup: unused OPT_xxx and client_priv.h 2024-05-06 17:16:10 +02:00
mysqldump.c Fix Various Typos 2024-05-28 11:31:49 +10:00
mysqlimport.c Fix Various Typos 2024-05-28 11:31:49 +10:00
mysqlshow.c cleanup: unused OPT_xxx and client_priv.h 2024-05-06 17:16:10 +02:00
mysqlslap.c cleanup: unused OPT_xxx and client_priv.h 2024-05-06 17:16:10 +02:00
mysqltest.cc MDEV-33616 workaround libmariadb bug : mysql_errno = 0 on failed connection 2024-06-11 09:15:32 +02:00
readline.cc perfschema memory related instrumentation changes 2020-03-10 19:24:22 +01:00