Fix postgres casting conflict in named parameters