we can no longer compare int and text fields without an explicit cast. this should maybe be ported to stable.