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:
@@ -193,7 +193,8 @@ class DllExport COLDEF : public COLCRT { /* Column description block
|
|||||||
friend class COLBLK;
|
friend class COLBLK;
|
||||||
friend class DBFFAM;
|
friend class DBFFAM;
|
||||||
friend class TDBASE;
|
friend class TDBASE;
|
||||||
public:
|
friend class TDBDOS;
|
||||||
|
public:
|
||||||
COLDEF(void); // Constructor
|
COLDEF(void); // Constructor
|
||||||
|
|
||||||
// Implementation
|
// Implementation
|
||||||
|
@@ -2018,7 +2018,8 @@ int TDBDOS::EstimatedLength(void)
|
|||||||
// result if we set dep to 1
|
// result if we set dep to 1
|
||||||
dep = 1 + cdp->GetLong() / 20; // Why 20 ?????
|
dep = 1 + cdp->GetLong() / 20; // Why 20 ?????
|
||||||
} else for (; cdp; cdp = cdp->GetNext())
|
} 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;
|
return (int)dep;
|
||||||
} // end of Estimated Length
|
} // end of Estimated Length
|
||||||
|
Reference in New Issue
Block a user