Merge lp:~chipaca/u1db/split_out_bad_globbage into lp:u1db
Proposed by
John Lenton
Status: | Merged |
---|---|
Approved by: | John Lenton |
Approved revision: | 310 |
Merged at revision: | 309 |
Proposed branch: | lp:~chipaca/u1db/split_out_bad_globbage |
Merge into: | lp:u1db |
Prerequisite: | lp:~chipaca/u1db/u1db-client_first_pass_of_get-from-index |
Diff against target: |
297 lines (+78/-47) 10 files modified
include/u1db/u1db.h (+1/-0) src/u1db_query.c (+2/-2) u1db/backends/inmemory.py (+2/-2) u1db/backends/sqlite_backend.py (+2/-2) u1db/commandline/client.py (+33/-18) u1db/errors.py (+5/-4) u1db/tests/c_backend_wrapper.pyx (+3/-0) u1db/tests/commandline/test_client.py (+24/-13) u1db/tests/test_backends.py (+5/-5) u1db/tests/test_inmemory.py (+1/-1) |
To merge this branch: | bzr merge lp:~chipaca/u1db/split_out_bad_globbage |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
John O'Brien (community) | Approve | ||
Eric Casteleijn (community) | Approve | ||
Review via email: mp+106991@code.launchpad.net |
This proposal supersedes a proposal from 2012-05-23.
Commit message
Split the «user globbed wrong» error from the «user used the wrong number of arguments» error when querying indexes (u1db-client gains better error reporting).
Description of the change
Split the «user globbed wrong» error from the «user used the wrong number of arguments» error when querying indexes.
To post a comment you must log in.
I don't think the text of the error message is always correct:
["value1*", "value2"] is not two partial searches, it's a case where the partial search is in the wrong place. To put it in language that covers all cases is left as an exercise to the reader.