File tree Expand file tree Collapse file tree 4 files changed +7
-9
lines changed
src/legacy/legacyapi/db/impl/mysql Expand file tree Collapse file tree 4 files changed +7
-9
lines changed Original file line number Diff line number Diff line change 11#pragma once
22#include " legacyapi/db/Session.h"
3- #include < mysql.h>
3+ #include < mariadb/ mysql.h>
44
55namespace DB {
66
Original file line number Diff line number Diff line change 11#include " lse/Entry.h"
22#include " legacyapi/db/impl/mysql/Stmt.h"
3-
43#include " legacyapi/db/impl/mysql/Session.h"
54#include " legacyapi/utils/StringReader.h"
65#include " ll/api/io/Logger.h"
Original file line number Diff line number Diff line change 11#pragma once
22#include " legacyapi/db/Stmt.h"
3- #include < mysql.h>
3+ #include < mariadb/ mysql.h>
44
55namespace DB {
66
@@ -10,9 +10,9 @@ struct Receiver {
1010 MYSQL_FIELD field;
1111 std::shared_ptr<char []> buffer;
1212 unsigned long length = 0 ;
13- bool isNull = false ;
13+ my_bool isNull = false ;
1414 bool isUnsigned = false ;
15- bool error = false ;
15+ my_bool error = false ;
1616};
1717
1818class MySQLStmt : public Stmt {
Original file line number Diff line number Diff line change @@ -23,10 +23,9 @@ add_requires(
2323 " simpleini" ,
2424 " sqlite3 3.43.0+200" ,
2525 " toml++" ,
26- " mysql 8.0.39 "
26+ " mariadb-connector-c 3.3.9 "
2727)
28- add_requires (" openssl 1.1.1-w" , {configs = {shared = false }})
29- add_requires (" cpp-httplib 0.14.3" , {configs = {ssl = true }})
28+ add_requires (" cpp-httplib 0.14.3" , {configs = {ssl = true , zlib = true }})
3029
3130if is_config (" backend" , " lua" ) then
3231 add_requires (" scriptx main" , {configs = {backend = " Lua" }})
@@ -81,7 +80,7 @@ target("legacy-script-engine")
8180 " simpleini" ,
8281 " sqlite3" ,
8382 " toml++" ,
84- " mysql "
83+ " mariadb-connector-c "
8584 )
8685 set_exceptions (" none" )
8786 set_kind (" shared" )
You can’t perform that action at this time.
0 commit comments