MySQL Forums
Forum List  »  Connector/C++

mysql-connector-c++-8.0.26-src compiler error
Posted by: yc qu
Date: August 03, 2021 12:55AM

mysql-connector-c++-8.0.26-src/jdbc/driver/mysql_connection.cpp:305:31: error: ‘MYSQL_OPT_LOAD_DATA_LOCAL_DIR’ was not declared in this scope
{OPT_LOAD_DATA_LOCAL_DIR, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, false}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matrixai/quycTest/src/mysql-connector-c++-8.0.26-src/jdbc/driver/mysql_connection.cpp:305:31: note: suggested alternative: ‘OPT_LOAD_DATA_LOCAL_DIR’
{OPT_LOAD_DATA_LOCAL_DIR, MYSQL_OPT_LOAD_DATA_LOCAL_DIR, false}
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OPT_LOAD_DATA_LOCAL_DIR
/home/matrixai/quycTest/src/mysql-connector-c++-8.0.26-src/jdbc/driver/mysql_connection.cpp: In member function ‘virtual sql::Connection* sql::mysql::MySQL_Connection::setClientOption(const sql::SQLString&, const void*)’:
/home/matrixai/quycTest/src/mysql-connector-c++-8.0.26-src/jdbc/driver/mysql_connection.cpp:1639:20: error: ‘MYSQL_OPT_LOAD_DATA_LOCAL_DIR’ was not declared in this scope
proxy->options(MYSQL_OPT_LOAD_DATA_LOCAL_DIR, optionValue);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/matrixai/quycTest/src/mysql-connector-c++-8.0.26-src/jdbc/driver/mysql_connection.cpp:1639:20: note: suggested alternative: ‘OPT_LOAD_DATA_LOCAL_DIR’
proxy->options(MYSQL_OPT_LOAD_DATA_LOCAL_DIR, optionValue);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
OPT_LOAD_DATA_LOCAL_DIR
jdbc/driver/CMakeFiles/jdbc.dir/build.make:107: recipe for target 'jdbc/driver/CMakeFiles/jdbc.dir/mysql_connection.cpp.o' failed


mysql version:mysql Ver 14.14 Distrib 5.7.34, for Linux (aarch64) using EditLine wrapper

Options: ReplyQuote


Subject
Views
Written By
Posted
mysql-connector-c++-8.0.26-src compiler error
862
August 03, 2021 12:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.