Avoid some unwanted SQL errors.