mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Fix wrong error "Invalid offset for CVS table" when a special
column is defined in a CSV table (MDEV-6187) modified: storage/connect/ha_connect.cc storage/connect/reldef.h storage/connect/tabfmt.cpp
This commit is contained in:
@@ -406,7 +406,7 @@ bool CSVDEF::DefineAM(PGLOBAL g, LPCSTR am, int poff)
|
||||
// Double check correctness of offset values
|
||||
if (Catfunc == FNC_NO)
|
||||
for (PCOLDEF cdp = To_Cols; cdp; cdp = cdp->GetNext())
|
||||
if (cdp->GetOffset() < 1) {
|
||||
if (cdp->GetOffset() < 1 && !cdp->IsSpecial()) {
|
||||
strcpy(g->Message, MSG(BAD_OFFSET_VAL));
|
||||
return true;
|
||||
} // endif Offset
|
||||
|
Reference in New Issue
Block a user