I have found what appears to be a strange bug with sqlite.
I have a table
CREATE TABLE controller(id INTEGER PRIMARY KEY ASC, controller_number TEXT, password TEXT);
With data
INSERT INTO controller (controller_number, password) VALUES ("1234", 1234);
No problems there, but check this out.
sqlite> SELECT * FROM controller;
1|1234|1234
sqlite> UPDATE controller SET controller_number="12345", password="password" WHERE id=1;
sqlite> SELECT * FROM controller;
1|12345|1234
can anyone explain why this is happening, or this a bug that should be raised?
Above causes an issue, but if do this
I get this
It is clear what is going on, the first UPDATE was setting password=password rather then password=”password” and second query executes the correct way.
Can anyone elaborate on why this happens, or should it happen in the first place?