evoteam team mailing list archive
-
evoteam team
-
Mailing list archive
-
Message #00104
[Bug 526380] Re: function db_delta() can't handle floats or decimals
** Changed in: quam-plures
Status: Triaged => 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 Released
Status in Quam Plures, as many as possible: Fix Committed
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';
¥