Better support for BLOBs

- Limbo command line shell supports e.g. `SELECT x'616263';`
- `EXPLAIN SELECT x'616263';` lists the opcode

Missing:

- Command line shell not entirely compatible with SQLite when blobs have
  non-printable characters in the middle (e.g. `SELECT x'610062';`)
- Python bindings not supported (incoming soon)
This commit is contained in:
Lauri Virtanen 2024-09-22 16:44:33 +03:00
parent f23c668488
commit 0597c048fc
No known key found for this signature in database
GPG key ID: 3D41BFC2B70819BA
7 changed files with 67 additions and 12 deletions

View file

@ -395,14 +395,13 @@ do_execsql_test typeof-real {
SELECT typeof(1.0);
} {real}
# TODO: Uncomment when blobs are better supported
# do_execsql_test typeof-blob {
# SELECT typeof(x'61');
# } {blob}
#
# do_execsql_test typeof-blob-empty {
# SELECT typeof(x'');
# } {blob}
do_execsql_test typeof-blob {
SELECT typeof(x'61');
} {blob}
do_execsql_test typeof-blob-empty {
SELECT typeof(x'');
} {blob}
do_execsql_test typeof-sum-integer {
SELECT typeof(sum(age)) from users;