Uploaded image for project: 'MariaDB Connector/C'
  1. MariaDB Connector/C
  2. CONC-101

dlerror() redifined

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Labels:
      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.

        Attachments

          Activity

            People

            Assignee:
            georg Georg Richter
            Reporter:
            rcannao René Cannaò
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: