I send this entry just as a reminder for other users, just in case they fall into the same trap.
In my case, the column holds an index that is used to sort the list; it can be sorted too by the Date Column, but having on the first column an index was as evident as breathing to live.
Think at a line number - for those who love line numbers in Xojo - you will saw in bills, bank account reports, etc.
Now I have to find a synonym and replace Index with that word in my code.
That is a list of Xojo reserved words.
SQLite, mySQL, Oracle, Postgres … etc… all have their own unique list of words.
Remember once you execute an SQL statement you are in “another language”, it just happens to be facilitated by Xojo
Its not a Xojo reserved word
Its a SQLite reserved word (because you’re telling SQLite, not Xojo, to create a table)
Last login: Wed Jun 7 09:34:17 on ttys000
server:~ npalardy$ sqlite3
SQLite version 3.8.10.2 2015-05-20 18:17:19
Enter ".help" for usage hints.
Connected to a transient in-memory database.
Use ".open FILENAME" to reopen on a persistent database.
sqlite> create table foo (bar , index ) ;
Error: near "index": syntax error
sqlite>
I was reading SQL for Dummies 8th Edition. It was hard to reach the reserved word INDEX. I found an occurence at DROP INDEX had enough searching (from the paper 2001 edition, printed in 2002 and 8th edition).
BTW: I was already tired 18 hours ago
(and its midnight ! [00:45])