Kaydet (Commit) 972c92c8 authored tarafından Eike Rathke's avatar Eike Rathke

CID#982304 logically dead code

Change-Id: I8ffc8249a4d1b7530ee208cf84b48af832758a4d
üst 2a17daf8
......@@ -686,11 +686,20 @@ void lcl_GetColumnTypes(
}
else
{
#if 1
// Adjust length to predefined precision.
nLen = nLen + ( nPrecision - nPrec );
#else
/* If the above override for (nPrecision < nPrec) was not in place then
* nPrecision could be 0 and this would be the code path to correctly
* calculate nLen. But as is, nPrecision is never 0 here, see CID#982304 */
// Adjust length to predefined precision.
if ( nPrecision )
nLen = nLen + ( nPrecision - nPrec );
else
nLen -= nPrec+1; // also remove the decimal separator
#endif
}
}
if (nFieldLen < nLen)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment