ciao Antornio,
> After the INSERT INTO I receive the following message:
>
> "SQL error: NOT NULL constraint failed:
> views_geometry_columns.read_only"
>
this happense because in your INSSERT statament you've missedd
to specify any valure for the "read_only" column.
the correct statement should be:
INSERT INTO views_geometry_columns
(view_name, view_geometry, view_rowid,
f_table_name, f_geometry_column, read_only)
VALUES ('st_g_attrib', 'geometry', 'rowid',
'st_g', 'geometry', 0);
> I have created the same view using the Query/View Composer and it was
> created without problems.
>
note that the Query/View Composer does a lot of operations in order
to create a Writable View, which you are skipping right away.
SQLite doesn't natively supoorts Writable Views; a full set of
Triggers must be installed in order to transform a simple
View into a Writeble View.
the Query/View Composer does silently all the dirty
work behind the scense, but if you whish to manually
create the Vien then you have to manually create all
Triggers as well.
being able to write these Triggers correctly is not
a trivial task at all, I would say that it's one of the
most complex things I can imagine given that it requires
a very deep knowledge of SQLite.
if you would like to study some further information you
can find it here:
https://www.gaia-gis.it/fossil/libspatialite/wiki?name=writable-view
bye Sandro
: