mirror of
https://github.com/dimitri/pgloader.git
synced 2026-05-04 10:31:02 +02:00
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:
parent
f654f10d0d
commit
88bb4e0b95
@ -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))))
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user