Lurker News
Remember this the next time someone suggests that SQLite is almost as good as (or even, cough, better than) PostgreSQL for production use.

I was bit by this today while busily engaged in some related work on my web app project. What the heck?!

Comments (7) 3 threads

Show all comments

Showing thread 2 of 3

rurban1 reply#
Then they should look at my foldcase and lower case table generator at https://github.com/rurban/Unicode-Towctrans/

3336 bytes for the case tables are not comparable to the ICU mess, and easily shippable.

eesmith#
With my project maintainer hat on, I don't think putting it into sqlite is the correct approach.

For one, it means extra work by the sqlite developers, to track the ever-changing Unicode spec, or your releases.
For another, the MIT license of the generated code is incompatible with the public domain dedication of sqlite.
For a third, sqlite is often part of a larger system, which will likely have its own way of doing Unicode. If there's a mismatch between the supported Unicode versions then there may be subtle errors not easily caught in testing. While if only ASCII is supported, leaving it up to the application programmer to implement the correct collation method, then that's easy to detect and resolve.
These are just the thoughts I have. I have no affiliation with the sqlite project.