3 Commits

Author SHA1 Message Date
Sandro Santilli
b33924a4b9 Fix old GDAL triggers in geopackage files
This makes changes which would otherwise fixed by done upon
opening these files with GDAL >= 3.2.2

Batch update was done using:

    ogrinfo ${F} -sql "select 1"

See
https://github.com/qgis/QGIS/issues/49033#issuecomment-1158006469

References GH-25830
2022-06-17 00:13:25 +02:00
Sandro Santilli
8c18fa28b6 Drop gpkg_metadata_reference_column_name_update trigger generated by GDAL < 2.4.0
Presence of this trigger results in QGIS dropping it whenever the file
is opened in read-write mode (as it happens with vector layer is
created from it)

See https://github.com/qgis/QGIS/issues/48937#issuecomment-1152726973
2022-06-11 01:35:14 +02:00
Alessandro Pasotti
cc1625c83e [bugfix][attrtable] Convert comma to dot for floating point input
This fixes an unreported bug that without detecting an
invalid input when using a comma as a decimal separator
silently converts the entered value to NULL.

Since locale support in QGIS is in its early stages
we convert commas to dots within the validator,
this is common practice in almost all web applications
where you can enter a comma instead of a dot and
the conversion appears while you digit.

This comes with brand new tests for QgsFieldValidator.

Bonus: small fix in sipify.
2018-01-31 12:50:14 +01:00