MCPcopy Create free account
hub / github.com/MariaDB/server / IsZero

Method IsZero

storage/connect/value.cpp:1780–1787  ·  view source on GitHub ↗

/ DECIMAL: Check whether the numerical value is equal to 0. */ /

Source from the content-addressed store, hash-verified

1778/* DECIMAL: Check whether the numerical value is equal to 0. */
1779/***********************************************************************/
1780bool DECVAL::IsZero(void)
1781{
1782 for (int i = 0; Strp[i]; i++)
1783 if (!strchr("0 +-.", Strp[i]))
1784 return false;
1785
1786 return true;
1787} // end of IsZero
1788
1789/***********************************************************************/
1790/* DECIMAL: Reset value to zero. */

Callers 5

ReadColumnMethod · 0.80
ReadColumnMethod · 0.80
ReadColumnMethod · 0.80
ReadColumnMethod · 0.80
ReadColumnMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected