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

Nathan Woodrow madmanwoo at gmail.com
Sun May 28 21:28:48 PDT 2017


I would say it's a case of bad docs as it's just a QVariant::Type and other
providers use it already.



On Mon, May 29, 2017 at 2:25 PM, 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 /
> Double
>      * \param typeName Field type (e.g., char, varchar, text, int, serial,
> double).
>      * Field types are usually unique to the source and are stored exactly
>      * as returned from the data store.
>
> and the usage of type in displayString and convertCompatible.
>
> Mark
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20170529/e825d4fc/attachment.html>


More information about the QGIS-Developer mailing list