| ▲ | Nul Characters in Strings in SQLite(sqlite.org) | |||||||
| 28 points by basilikum 3 hours ago | 2 comments | ||||||||
| ▲ | Groxx an hour ago | parent [-] | |||||||
>* The length() SQL function only counts characters up to and excluding the first NUL.* >The quote() SQL function only shows characters up to and excluding the first NUL. >The .dump command in the CLI omits the first NUL character and all subsequent text in the SQL output that it generates. In fact, the CLI omits everything past the first NUL character in all contexts. That's just all kinds of "oh no", wow. I mean, I can't come up with a better strategy, but... oof. C-style strings being a thing at all really hurts. | ||||||||
| ||||||||