You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
casestrings.Contains(err.Error(), "does not exist"):
My postgresql installation was not installed with an english locale (a french one), so the error message doesn't have the does not exist but the french equivalent n'existe pas
Maybe a good way to handle this would be to use an error code, not dependant of the locale ?
The text was updated successfully, but these errors were encountered:
TanguyBaudrin
changed the title
Database init error when locale in not english
Database init error when locale is not english
Oct 19, 2020
…ization
The check for schema_migrations uses a database/sql.QueryContext func, which returns
errors directly from the driver. In this case, check the error code from Postgres,
and if it matches 42P01 (the error code for table not found), run the initialization.
Downside here, is it's now checking a concrete error type from the database driver
in the command code. This could probably be abstracted away, in the case for other
database servers.
resolveshashicorp#729
Hi,
When testing Boundary, I faced an issue during the init database.
After digging a while the script told me that the database was already initialized, so I started looking at the code, and found this :
boundary/internal/cmd/commands/database/init.go
Line 257 in b8c527c
My postgresql installation was not installed with an english locale (a french one), so the error message doesn't have the
does not exist
but the french equivalentn'existe pas
Maybe a good way to handle this would be to use an error code, not dependant of the locale ?
The text was updated successfully, but these errors were encountered: