function db_delta() can't handle floats or decimals
Bug #526380 reported by
Yabs
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Quam Plures |
Fix Released
|
Low
|
Yabs | ||
b2evolution |
Triaged
|
Medium
|
Unassigned | ||
Whissip |
Fix Released
|
Undecided
|
Daniel Hahler |
Bug Description
Function db_delta() [ /inc/_core/
Changing line 641 to the following *appears* to cure it, but hardly tested :
$matches_pattern = '~^'.preg_replace( '~\((\d+)\)~', '(\(\d+\))?', preg_quote(
¥
Related branches
lp://staging/~quam-plures-core/quam-plures/qp-bug_526380
- Tilman Blumenbach (community): Approve
- EdB: Approve
-
Diff: 282 lines (+76/-34)1 file modifiedqp_inc/_core/model/db/_upgrade.funcs.php (+76/-34)
Changed in quam-plures: | |
assignee: | nobody → Daniel Hahler (blueyed) |
Changed in b2evolution: | |
assignee: | nobody → Daniel Hahler (blueyed) |
importance: | Undecided → Medium |
status: | New → Triaged |
milestone: | none → whissip-first-release |
Changed in b2evolution: | |
milestone: | whissip-first-release → none |
Changed in quam-plures: | |
status: | Triaged → Fix Committed |
Changed in quam-plures: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I can look into this.
After all, there are a lot of tests and you could easily add another one.