1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Fix the TDBDOS::EstimatedLength function that was wrongly counting

its calculation virtual and special columns.
  modified:   storage/connect/reldef.h
  modified:   storage/connect/tabdos.cpp
This commit is contained in:
Olivier Bertrand
2015-08-06 17:46:47 +02:00
parent 7962add6c4
commit 5f533035d3
2 changed files with 4 additions and 2 deletions

View File

@@ -2018,7 +2018,8 @@ int TDBDOS::EstimatedLength(void)
// result if we set dep to 1
dep = 1 + cdp->GetLong() / 20; // Why 20 ?????
} else for (; cdp; cdp = cdp->GetNext())
dep = MY_MAX(dep, cdp->GetOffset());
if (!(cdp->Flags & (U_VIRTUAL|U_SPECIAL)))
dep = MY_MAX(dep, cdp->GetOffset());
return (int)dep;
} // end of Estimated Length