[QGIS-Developer] QGIS3 QgsField : adding DATE / DATETIME / BLOB support

Nyall Dawson nyall.dawson at gmail.com
Sun May 28 21:09:40 PDT 2017


On 29 May 2017 at 13:55, Mark Johnson <mj10777 at googlemail.com> wrote:
> For QGIS3, adding support for other basic Field-Types in class QgsField,
> such as DATE / DATETIME and BLOBs should be taken into consideration.
>
> Also adding a field (SQLITE stored as 'cid') which would represent the Field
> number inside the TABLE could simplify the use inside a Provider.
>
> At the moment only String / Int / Double are supported.

What makes you think that?

https://github.com/qgis/QGIS/blob/master/src/providers/postgres/qgspostgresprovider.cpp#L202
https://github.com/qgis/QGIS/blob/master/src/providers/ogr/qgsogrprovider.cpp#L464
...

QGIS has quite rich field type support. Is there something in
particular which you've found is missing?

Nyall


More information about the QGIS-Developer mailing list