I have some tables in a spatialite database, and I want to truncate the tables.
It seems there is no TRUNCATE command in sqlite/spatialite so I've used 'DELETE FROM <my table>' in SQL Exector.
I get a rejected feature with the following log message (in red text).
"SPATIALITE reader: In ExecuteSQL(): sqlite3_step(DELETE FROM boundaries): SQL logic error or missing database
SPATIALITE reader: Unable to execute SQL statement 'DELETE FROM boundaries'
SPATIALITE reader: Unable to read feature type '__fme_execute_sql_results__'
A fatal error has occurred. Check the logfile above for details."
I can execute the same command using SQLExecutor on an Oracle database, so the issue seems to be with the spatiaLite reader/writer format.
I've also tried 'DROP TABLE <my table>', but it returns the same rejection message.
Reading some documentation online, it seems you cannot delete on views in sqlite/spatialite, but I'm trying to access a table, not a view.
Any ideas?
Has anyone else encountered this? Have I missed something?
Thanks for any help
Mary