regard null in condition as primary key value