DB-5622: check constraint put in quotes, unit test added