<div dir="ltr"><div><div><div><div>Hi all,<br><br></div>I've noticed a strange behavior of SL (both for QGIS 2.8.1 and Master).<br></div>If I made a query of a database layer and I load it in QGIS, no problem at all. <br>But when I add a column to this layer using the Field Calculator, the whole numeric fields get messed and are transformed in NUMERIC type.<br><br></div>This way I cannot not use the Graduated symbology anymore (NUMERIC is not supported by SL, but is a transformation made by QGIS).<br><br></div>A small example. I have 2 fields (DOUBLE) and I want to add a 3rd field as the sum of those ones. <br>Field Calculator -> New Field (DOUBLE) -> "x" + "y" -> Save -> get this error<br><br><br>

<p style="margin:0px;text-indent:0px">Could not commit changes to layer media_coordinate</p>
<p style="margin:0px;text-indent:0px"></p>
<p style="margin:0px;text-indent:0px">Errors: SUCCESS: 1 attribute(s) added.</p>
<p style="margin:0px;text-indent:0px">  ERROR: field with index 1 is not the same!</p>
<p style="margin:0px;text-indent:0px">  Provider: spatialite</p>
<p style="margin:0px;text-indent:0px">  Storage: SQLite database with SpatiaLite extension</p>
<p style="margin:0px;text-indent:0px">  expected field: name=mean_x type=double typeName=DOUBLE len=0 precision=0</p>
<p style="margin:0px;text-indent:0px">  retrieved field: name=mean_x type=QString typeName=NUMERIC len=0 precision=0</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Close without saving and the DOUBLE fields become NUMERIC, while the 3rd field is created (as DOUBLE) but is empty.</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Am I missing something?</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Thanks</p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px">Matteo<br></p><p style="margin:0px;text-indent:0px"><br></p><p style="margin:0px;text-indent:0px"><br></p><br></div>