Open ycybfhb opened 1 month ago
Can you give me code with ODBC?
Hello, I installed unixodbc 2.3.9 and mysql-connector-odbc 8.4.0.
apt-get install -y unixodbc unixodbc-dev
apt-get install -y mysql-connector-odbc
And I used the MySQL ODBC 8.4 ANSI Driver
to connect to the database.
/etc/odbcinst.ini
[MySQL ODBC 8.4 Unicode Driver]
DRIVER=/usr/lib/x86_64-linux-gnu/odbc/libmyodbc8w.so
UsageCount=1
[MySQL ODBC 8.4 ANSI Driver]
DRIVER=/usr/lib/x86_64-linux-gnu/odbc/libmyodbc8a.so
UsageCount=1
/etc/odbc.ini
[ODBC Data Sources]
TIMAIN = TiDB Main node
[TIMAIN]
Driver = MySQL ODBC 8.4 ANSI Driver
Description = TiDB Main node
Trace = No
Server = 10.1.2.21
Database = ti_main
Port = 4000
Uid = root
Link to the source code of mysql-connector-odbc.
Bug Report
Please answer these questions before submitting your issue. Thanks!
1. Minimal reproduce step (Required)
When executing the following statements while connecting via ODBC and isql, the error arises; however, this error does not occur when using MySQL Shell to connect.
2. What did you expect to see? (Required)
Expect no crashes
3. What did you see instead (Required)
tidb.log:
4. What is your TiDB version? (Required)
We are the BASS team from the School of Cyber Science and Technology at Beihang University. Our main focus is on system software security, operating systems, and program analysis research, as well as the development of automated program testing frameworks for detecting software defects. Using our self-developed database vulnerability testing tool, we have identified the above-mentioned vulnerabilities in TiDB that may lead to database crashes.