Settings

Theme

Tell HN: Cast('abc' AS INTEGER) returns 0 in SQLite

3 points by prmph · 9 comments · 1 min read


Every day I encounter more weirdness of SQLite. Is this the JavaScript of databases?

3 threads
hans_castorp

There is more: https://dbfiddle.uk/FDkqamR_

(Some examples there no longer work with the current version - so they are improving :) )

This is by design and well documented though.

ftherd

It's so lite, it even removes the errors

vconnor

What do you want it to return? You should really RTFM of SQLite. It's by design.

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection