sqlite regexp() function doesn't behave like mysql
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
oslo.db |
Confirmed
|
Medium
|
Unassigned |
Bug Description
I reported this originally against nova, but it seems to be in oslo.db now.
In nova bug 1298494 I saw a case where the unit tests (using sqlite) behaved differently than devstack with mysql.
The issue seems to be when nova did:
filters = {'uuid': group.members, 'deleted_at': None}
instances = instance_
Eventually down in nova/db/
query = query.filter(
where str(filters[
When using mysql, a regexp comparison of the string 'None' against a NULL field fails to match.
Since sqlite doesn't have its own regexp function oslo.db provides one in oslo_db/
This is a bug, we want the unit tests to behave like the real system.
Changed in oslo.db: | |
status: | New → Confirmed |
importance: | Undecided → Medium |