-- pgbench function/operator test
-- pgbench -f <this file> -t 1
-- -2
\set i debug(~ 1)
\set i debug(~ 0)
-- 0
\set i debug(0.0 and 1.0)
\set i debug(0 or 1.0)
\set i debug(10 & 6)
\set i debug(1 # 2)
\set i debug(3 + (0 < 1))
\set i debug(case when 1 then 4|1 else 0 end)
\set i debug(case when 0 then -1 when 1 then 4 + (1 = 1) + (1.0 = 0.5 * 2) end )
\set i debug((1 > 0) + (1 >= 0) + (0 < 1) + (0 <= 1) + (0 != 1) + (0 = 0) + (0 <> 1))
\set i debug((1.0 > 0.0) + (1.0 >= 0.0) + (0.0 < 1.0) + (0.0 <= 1.0) + (0.0 != 1.0) + (0.0 = 0.0) + (0.0 <> 1.0) + (0.0 = 0.0))
\set d debug(CASE WHEN 1 THEN 3 * 3.0 END)
-- 10
\set i debug(case when 0 then 3 * 3.0 when 1-1 then 8 else 10 end)
\set i debug((2 + 1 * 2 + 3 | 4 * (2 & 11)) - 4)
\set i debug(0 > 1)
\set i debug(1 <= 1)
\set i debug(0 >= 1)
\set i debug(0 < 1)
\set i debug(0 and 1)
\set i debug(0 or 1)
\set i debug(not :i)
\set i debug(not 0)
\set i debug(not 1)
\set i debug(7 >> 2)
\set i debug(1 >> 1)
\set d debug(exp(1.0))
\set d debug(ln(1.0))
\set d debug(ln(-1.0))
