Bug #3858 Incomplete error message when creating a foreign key constraint