| 1799 | } |
| 1800 | |
| 1801 | static char * |
| 1802 | valueTypeName(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 */ |
| 1823 | static bool |
no outgoing calls
no test coverage detected