Menu

#526 MariaDB 10.6.3 stable - Unknown MySQL data type!

7.2.8
closed
Bug Report
2021-07-09
2021-07-07
Jony Rh
No

Lazarus 2.0.12, FPC 3.2.0, ZeosDBO from Online Package Manager, Win10 64

Using protocol "MariaDB-10" and libmariadb.dll from install dir MariaDB10.6

After try connect with out params and database: Error "Unknown MySQL data type!"

Discussion

  • Jony Rh

    Jony Rh - 2021-07-07
    • summary: MariaDB 10.6.3 - Unknown MySQL data type! --> MariaDB 10.6.3 stable - Unknown MySQL data type!
     
  • Jony Rh

    Jony Rh - 2021-07-08

    Dont work only with libmariadb.dll included on MariaDB 10.6.3 stable
    Version included library MariaDB Connector/C v3.2.3

     
  • marsupilami79

    marsupilami79 - 2021-07-09

    Hello Jony,

    as a workaround you might want to use MariaDB Connector/C Version 3.1.13: https://downloads.mariadb.org/connector-c/3.1.13/
    This version seems to work correctly.

    It seems that version 3.2.3 uses a different layout for the MYSQL_FIELD structure.

     
  • marsupilami79

    marsupilami79 - 2021-07-09

    I did some more debugging. This is related to an intentional change in MySQL Connector/C:
    https://jira.mariadb.org/browse/CONC-509
    https://github.com/mariadb-corporation/mariadb-connector-c/commit/a37b7c3

    Zeos thinks that it talks to a very old library because mysql_get_client_version returns 30203 in MariaDB Connector/C version 3.2.3 whereas version 3.1.13 returns 100505.

    To solve this, we need some way to distinguish between libmysql and libmariadb.

     
  • marsupilami79

    marsupilami79 - 2021-07-09

    I fixed this in [r7604] for Zeos 7.2. A new release will happen in some days.

     

    Related

    Commit: [r7604]

  • Jony Rh

    Jony Rh - 2021-07-09

    You are gorgeous! Thank you so much!

     
  • Jony Rh

    Jony Rh - 2021-07-09
    • status: open --> accepted
    • assigned_to: marsupilami79
     
  • Jony Rh

    Jony Rh - 2021-07-09
    • status: accepted --> closed
     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.