This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Description
To reproduce:
- Create a new service instance of the Postgresql API
pTest12
- Reports the DB has been created
- Try to bind the DB instance to your app
Error log:
Error: Failed to bind the instance "pTest12" to the app "dashboard": FATAL: database "pTest12" does not exist
Root cause analysis:
http://www.postgresql.org/docs/current/static/sql-syntax-lexical.html
Postgresql treats the db name as lowercase, normalising. However, the field in the postgresapi does not replicate this behaviour, thus allowing you to create a database with Capital letters. The fix could be to warn the user that no uppercase letters are allowed in the db aname and to add in a validation rule to the API to stop a user creating such a database.