Closed Bug 288051 Opened 20 years ago Closed 19 years ago

simple boolean checking of get_index_def's return value is error-prone

Categories

(Bugzilla :: Bugzilla-General, defect)

2.19
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: myk, Assigned: mkanat)

References

Details

Simple boolean checking of get_index_def's return value is error-prone, since
multi-column indexes are listed one column at a time, so an index on columns
(foo, bar) of table "baz" will cause get_index_def("baz","bar") to return a true
value even though that index may not satisfy the need for which get_index_def
was called, since if you are searching just "bar" instead of both columns you
won't be able to use that multi-column index.
Flags: blocking2.20+
Target Milestone: --- → Bugzilla 2.20
Oh, definitely known. All the old schema-checking functions have logical errors
in them, pretty much.

They are all going away as part of bug 285722, and being replaced with much
nicer functions that work sanely. :-)
Depends on: 285722
Whiteboard: [blocker will fix]
"If it's not a regression from 2.18 and it's not a critical problem with
something that's already landed, let's push it off." - Dave
Flags: blocking2.20+
Flags: blocking2.20-
mkanat, is this bug fixed now?
Yeah. Fixed by blocker.
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Whiteboard: [blocker will fix]
Assignee: general → mkanat
You need to log in before you can comment on or make changes to this bug.