Niklas Johansson <spot(at)tele2(dot)se> writes:> You must cast the integer column to a float or numeric, try:
Since the CHECK is expecting an exact result, better use numeric.
regards, tom lane