Live data from Hacker News

Prefer strict tables in SQLite

evanhahn.com

1–10 of 188 posts

Re: Prefer strict tables in SQLite

#4
post #2

It really should be default, but it isn't due to backward compatibility (i assume).

I’m kind of curious why the decision to have implicit casting like this was made in the first place. I can’t think of a single upside other than not having to type out cast(foo as bar)

Re: Prefer strict tables in SQLite

#6
post #4
post #2

It really should be default, but it isn't due to backward compatibility (i assume).

I’m kind of curious why the decision to have implicit casting like this was made in the first place. I can’t think of a single upside other than not having to type out cast(foo as bar)

IIRC, the project started out as TCL code and it carried that vibe through to what it is today.

Re: Prefer strict tables in SQLite

#7
post #4
post #2

It really should be default, but it isn't due to backward compatibility (i assume).

I’m kind of curious why the decision to have implicit casting like this was made in the first place. I can’t think of a single upside other than not having to type out cast(foo as bar)

SQLite docs: The Advantages Of Flexible Typing: https://sqlite.org/flextypegood.html
Post reply on HN