<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<p>Hey Miquel,</p>
<p>make sure the data type of the field you want to insert the
result to matches the data type of the result itself. You might
need to convert an array to a string if I understand you
correctly.</p>
<p>Cheers, Hannes<br>
</p>
<div class="moz-cite-prefix">Am 21.01.22 um 12:04 schrieb Miquel
Pujol Garcia:<br>
</div>
<blockquote type="cite"
cite="mid:CAGSmR=-veLnsHtQsOKqb-N8fH2EaLT3vn=nHra1v1d61aXtRHA@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr"><b>Hello Qgisers,</b>
<div><br>
</div>
<div>I'm trying to insert in a field* a serial data number
(2,4,6,8,10,...)</div>
<div>using <u>generate_series</u> from array group. When I
purpose the </div>
<div>syntax in Calculate Camps in the table, I can see the
correct</div>
<div>result but when I execute the values aren't inserted in the
field.</div>
<div><br>
</div>
<div>The objects are lines in a Geopackage.</div>
<div><br>
</div>
<div>Does someone use generate_series and know-how run well?</div>
<div><br>
</div>
<div>*field = enter number: long 10 <br>
</div>
<div><br>
</div>
<div>Thanks,<br clear="all">
<div>
<div dir="ltr" class="gmail_signature"
data-smartmail="gmail_signature">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div dir="ltr">
<div><b>------------------------</b></div>
<b>Miquel</b>
<div><br>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
Qgis-user mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Qgis-user@lists.osgeo.org">Qgis-user@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-user">https://lists.osgeo.org/mailman/listinfo/qgis-user</a>
</pre>
</blockquote>
<pre class="moz-signature" cols="72">--
Johannes Kröger / GIS-Entwickler/-Berater
WhereGroup GmbH
Grevenweg 89
20537 Hamburg
Germany
Tel: +49 (0)228 / 90 90 38 - 36
Fax: +49 (0)228 / 90 90 38 - 11
<a class="moz-txt-link-abbreviated" href="mailto:johannes.kroeger@wheregroup.com">johannes.kroeger@wheregroup.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.wheregroup.com">www.wheregroup.com</a>
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885
-------------------------------
---------------------------------------------
Schon gewusst?
In unserem Blog geben wir Tipps & Tricks zu
Open-Source-GIS-Software
und berichten aus unserem Experten-Alltag:
<a class="moz-txt-link-freetext" href="https://wheregroup.com/blog/">https://wheregroup.com/blog/</a>
---------------------------------------------
</pre>
</body>
</html>