evoteam team mailing list archive
-
evoteam team
-
Mailing list archive
-
Message #00099
[Bug 526380] Re: function db_delta() can't handle floats or decimals
** Also affects: b2evolution/whissip
Importance: Undecided
Status: New
** Changed in: b2evolution/whissip
Status: New => Fix Committed
--
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 b2evolution whissip series: Fix Committed
Status in Quam Plures, as many as possible: Triaged
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';
¥