mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix length when TYPVAL::SetValue_char is called from MYSQLCOL::ReadColumn.
modified: storage/connect/tabmysql.cpp storage/connect/value.cpp
This commit is contained in:
@@ -1232,7 +1232,7 @@ void MYSQLCOL::ReadColumn(PGLOBAL g)
|
||||
if (trace)
|
||||
htrc("MySQL ReadColumn: name=%s buf=%s\n", Name, buf);
|
||||
|
||||
Value->SetValue_char(buf, Long);
|
||||
Value->SetValue_char(buf, min((unsigned)Long, strlen(buf)));
|
||||
} else {
|
||||
if (Nullable)
|
||||
Value->SetNull(true);
|
||||
|
Reference in New Issue
Block a user