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

Can't use a database name with an Uppercase letter #8

@dhilton

Description

@dhilton

To reproduce:

  1. Create a new service instance of the Postgresql API pTest12
  2. Reports the DB has been created
  3. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions