Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
qgspostgresprovider: Fix primary key retrieval with lowercase option
The `lowercaseFieldNames` allows to transform the column names to lowercase. If this option is enabled, then the requested primary key (`primaryKey`) is in lowercase but the `fields` are not. Therefore, the requested primary key will never be found. This issues is fixed by converting the field names to lowercase when looking for the primary key if the option is enabled. Closes: qgis#55856
- Loading branch information