Skip to content

No such column error on existing column. #2671

Answered by muddi900
muddi900 asked this question in Q&A
Discussion options

You must be logged in to vote

I figured it out. The PRAGMA output shows that the field is nullable

cid         name        type        notnull     dflt_value  pk
----------  ----------  ----------  ----------  ----------  ----------
0           id          INTEGER     1                       1
1           role        TEXT        1                       0
2           content     TEXT        1                       0
3           message_in  INTEGER     0                       0
4           chat_id     TEXT        1                       0
5           previous_m  INTEGER     0                       0

Apparently initiating a nullable field in an insert statement throws this error. This true for running a purely sql runtime.

Replies: 1 comment 12 replies

Comment options

You must be logged in to vote
12 replies
@muddi900
Comment options

@muddi900
Comment options

@simolus3
Comment options

@muddi900
Comment options

Answer selected by muddi900
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants