Maybe this is a bug, maybe not, but i've certainly never seen it before...

i'm intentionally introducing SQL errors to test my JSON-side error
handling, and i found that this:

rc = sqlite3_prepare_v2(g.db, zSql, -1, &pStmt->pStmt, 0);

outputs to stderr when preparation fails.

i've never seen sqlite3 do that before. Is that normal? It interferes with
the JSON output:

stephan@tiny:~/cvs/fossil/fossil-sgb$ ./fossil json stat
./fossil: SQLITE_ERROR: near "(": syntax error
{
"fossil":"fa2d6af481b1a27db0206cef717fc9edeab59201",
"timestamp":1315581772,
"resultCode":"FOSSIL-1003",
"resultText":"near \"(\": syntax error\nSELECT x count(*) FROM blob"
}

that first output line "shouldn't be there".

Is this a debug mode thing? (In which case i don't mind so much.)

-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to