-
Notifications
You must be signed in to change notification settings - Fork 4
Use STRICT tables #1
Comments
Ok, I understand the "STRICT" and added that, but I don't understand your comments about "NOT NULL", "UNIQUE" and "PRIMARY". I just followed the sqlite tutorial/introduction, first time I use sqlite. About "TIME": no, time should not be automatically set or updated. |
Ok, everything is fine then. |
Actually thinking about it more and looking into the code. You save Lines 184 to 186 in be609c4
You never use |
I'm using NULL values, it was only because of the asprintf that this was mapped to empty strings. |
lastlog2/lib/lastlog2.c
Line 183 in 6a3244c
Append
STRICT
at the end ofCREATE TABLE
. This might save you a lot of pain -- the types are really what they are supposed to be. That means you have to switch fromINT
toINTEGER
too.Should be
TIME
updated by aTRIGGER
(unlikely as you set the time fromstat
AFAICS) and have a default value ofCURRENT_TIMESTAMP
?Also I would expect
NOT NULL
in some columns. I suppose,UNIQUE
is only the name and that is by default viaPRIMARY KEY
.The text was updated successfully, but these errors were encountered: