Details
-
Bug
-
Status: Closed (View Workflow)
-
Minor
-
Resolution: Fixed
-
2.0.0
-
None
-
None
-
None
Description
From my_global.h :
#if HAVE_DLERROR
|
#define dlerror() ""
|
#endif
|
Why is that?
For comparison, in MySQL my_global.h :
#ifndef HAVE_DLERROR
|
#ifdef _WIN32
|
...
|
#define dlerror() ""
|
#define dlopen_errno GetLastError()
|
#else /* _WIN32 */
|
#define dlerror() "No support for dynamic loading (static build?)"
|
#define DLERROR_GENERATE(errmsg, error_number) errmsg= dlerror()
|
#define dlopen_errno errno
|
#endif /* _WIN32 */
|
#else /* HAVE_DLERROR */
|
#define DLERROR_GENERATE(errmsg, error_number) errmsg= dlerror()
|
#define dlopen_errno errno
|
#endif /* HAVE_DLERROR */
|
MySQL my_global.h (rightfully) redefines dlerror() if HAVE_DLERROR is not defined, while MariaDB client library redefines dlerror() if HAVE_DLERROR is defined.