sql syntax error rollback patch with test