Register "auto_increment" as a SQLite noise word.

As seen in #302 it's possible to define a SQLite column of type "integer
auto_increment". In my testing tho, it doesn't mean a thing. Worse than
that, apparently when an integer column is created that is also used as
the primary key of the table, the notation "integer auto_increment
primary key" disables the rowid behavior that is certainly expected.

Let's not yet mark the bug as fixed as I suppose we will have to do
something about this rowid mess. Thanks again SQLite.
This commit is contained in:
Dimitri Fontaine 2015-10-22 21:55:34 +02:00
parent f654f10d0d
commit 88bb4e0b95

View File

@ -58,7 +58,8 @@
(let* ((sqlite-type-name (string-downcase sqlite-type-name))
(tokens (remove-if (lambda (token)
(or (member token '("unsigned" "short"
"varying" "native")
"varying" "native"
"auto_increment")
:test #'string-equal)
;; remove typemod too, as in "integer (8)"
(char= #\( (aref token 0))))