MCPcopy Create free account
hub / github.com/apache/cloudberry / valueTypeName

Function valueTypeName

src/bin/pgbench/pgbench.c:1801–1820  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1799}
1800
1801static char *
1802valueTypeName(PgBenchValue *pval)
1803{
1804 if (pval->type == PGBT_NO_VALUE)
1805 return "none";
1806 else if (pval->type == PGBT_NULL)
1807 return "null";
1808 else if (pval->type == PGBT_INT)
1809 return "int";
1810 else if (pval->type == PGBT_DOUBLE)
1811 return "double";
1812 else if (pval->type == PGBT_BOOLEAN)
1813 return "boolean";
1814 else
1815 {
1816 /* internal error, should never get there */
1817 Assert(false);
1818 return NULL;
1819 }
1820}
1821
1822/* get a value as a boolean, or tell if there is a problem */
1823static bool

Callers 3

coerceToBoolFunction · 0.85
coerceToIntFunction · 0.85
coerceToDoubleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected