This error is present in all prior versions of SQLite back through
version 3.1.3 (2005-02-19) and perhaps earlier.  (Version 3.1.3 is as far back as
we looked.)

The fix for the problem is check-in

Test cases for this fix are in the test/whereB.test test script.