[QGIS-Developer] QGIS3 QgsField : adding DATE / DATETIME / BLOB support
nyall.dawson at gmail.com
Sun May 28 21:29:29 PDT 2017
On 29 May 2017 at 14:25, Mark Johnson <mj10777 at googlemail.com> wrote:
>>> What makes you think that?
> Based on the implementation of the QgsSpatiaLiteProvider (which only
> supports TEXT, INTEGER and DOUBLE) and the documentation of QgsField.
>>> Constructor. Constructs a new QgsField object.
> * \param type Field variant type, currently supported: String / Int /
> * \param typeName Field type (e.g., char, varchar, text, int, serial,
> * Field types are usually unique to the source and are stored exactly
> * as returned from the data store.
OK - that needs fixing. Can you send a PR?
> and the usage of type in displayString and convertCompatible.
That's fine - displayString falls back to Qt's QVariant::toString(),
so it handles other data types. convertCompatible uses
QVariant::convert in the same way.
More information about the QGIS-Developer