raw == 0 was wrongly handled for numeric domains