evoteam team mailing list archive
-
evoteam team
-
Mailing list archive
-
Message #00097
[Bug 526380] Re: function db_delta() can't handle floats or decimals
** Changed in: quam-plures
Assignee: (unassigned) => Daniel Hahler (blueyed)
** Also affects: b2evolution
Importance: Undecided
Status: New
** Changed in: b2evolution
Assignee: (unassigned) => Daniel Hahler (blueyed)
** Changed in: b2evolution
Importance: Undecided => Medium
** Changed in: b2evolution
Status: New => Triaged
** Changed in: b2evolution
Milestone: None => whissip-first-release
--
function db_delta() can't handle floats or decimals
https://bugs.launchpad.net/bugs/526380
You received this bug notification because you are a member of Evoteam,
which is subscribed to b2evolution.
Status in b2evolution: Triaged
Status in Quam Plures, as many as possible: New
Bug description:
Function db_delta() [ /inc/_core/model/db/_upgrade.funcs.php ] always sees float and decimal as having changed.
Changing line 641 to the following *appears* to cure it, but hardly tested :
$matches_pattern = '~^'.preg_replace( '~\((\d+)\)~', '(\(\d+\))?', preg_quote(preg_replace( '~^decimal~i', 'DEC', $tablefield->Type )) ).'$~i';
¥