fix(db): MariaDB 10.6+ server and connector compatibility
- Parse real MariaDB version after MySQL 5.5.5 compatibility prefix for DatabaseIncompatibleVersion checks. - Relax client checks when building against MariaDB C connector (MARIADB_VERSION_ID); keep Oracle MySQL 8.0+ rules otherwise. - Use mysql_stmt_bind_param on MariaDB; mysql_stmt_bind_named_param only for MySQL 8.3+ without MariaDB headers. - SSL: MYSQL_OPT_SSL_ENFORCE on MariaDB connector, MYSQL_OPT_SSL_MODE elsewhere. - Track custom_script_loader.cpp so static script link succeeds; CMake find_package(MySQL) requires COMPONENTS lib on CMake 3.16.
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ include(ConfigInstall)
|
||||
CU_RUN_HOOK("AFTER_LOAD_CMAKE_MODULES")
|
||||
|
||||
find_package(PCHSupport)
|
||||
find_package(MySQL REQUIRED)
|
||||
find_package(MySQL REQUIRED COMPONENTS lib)
|
||||
|
||||
if(UNIX AND WITH_PERFTOOLS)
|
||||
find_package(Gperftools)
|
||||
|
||||
Reference in New Issue
Block a user