Skip to content

Unexpected output from APSW interactive shell #538

Answered by rogerbinns
ColMcp asked this question in Q&A
Discussion options

You must be logged in to vote

It is an intentional difference in functionality when the shell is outputting a formatted query results table. If you look in the example you can see different options for how strings are sanitized - the parameter is described here. (The SQLite shell is generally happy to just dump whatever bytes it got as text straight out.)

If the apsw shell is started interactively (ie running with terminal input and output) then it defaults to mode box. There is also qbox where quoting values is turned on, and table which uses ASCII.

You can change the options with flags named like format_query_table parameters:

.mode box --string-sanitize 0 --truncate 17 --text_with 132

There is currently a bug show…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ColMcp
Comment options

@rogerbinns
Comment options

Answer selected by rogerbinns
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants