Hi Christian,
Clear.
I'll adapt my code and will experiment with the provided example
"query 1, 2+'3'"
This brings me to another question; do you have a set of testcases with
expected results? I don't know if the testcases in my libBasexTest.cpp
cover the complete server protocol.
Ben
Op 29-04-2026 om 14:04 schreef Christian Grün via BaseX-Talk:
Hi Ben,
The actual protocol framing on error is:
{partial result} \00 \01 {error message} \00
Both bytes are present: all results end with a single \00 byte, which
indicates that the process was successful. If an error occurs, an
additional byte \01 is sent, which is then followed by the error message
string.
The worked example in the docs makes this concrete [1]: For the query 1,
2+'3', the server sends the partial result "1" terminated with \00, then
\01 followed by the error text “Stopped at...”, and finally a closing
\00 that terminates the error string itself.