Uploaded image for project: 'Apache Fineract'
  1. Apache Fineract
  2. FINERACT-1757

Uppercase letters in the datatable name / column name is failing on postgres

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.8.0
    • 1.9.0
    • None

    Description

      There is no restriction on the datatables whether they can contain uppercase letters.

      It was working just fine with Mysql and Mariadb as it was automatically converted all of them on saving and lookup.

      However postgres is working differently. It will fail on the lookup if the provided table names contains uppercase letters. The same applies for column names as well.

      Steps to reproduce

      • Customer create a new datatable with uppercase letters: e.g. m_client_ASD78
      • It will be created and stored in the x_registered_table DB table AS-IS: m_client_ASD78
      • DB table will be created, but postgres will create the DB table with lowercase letters: m_client_asd78
      • Fetching data from that datatable by the datatable name will failing: SELECT * from m_client_ASD78 query will fail as m_client_ASD78 does not exists on postgres (only m_client_asd78 DB table exists)

      Important

      • Any fix for this problem must consider backward compatibility! On Mysql it was allowed and okay to create DB tables with uppercase letters!

      Attachments

        Issue Links

          Activity

            People

              josealbertohm Jose Alberto Hernandez Maldonado
              adamsaghy Adam Saghy
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: