← Back to team overview

evoteam team mailing list archive

[Bug 526380] Re: function db_delta() can't handle floats or decimals

 

Hi Daniel, 
Great you're looking into this, would be nice to fix it in time for 0.0.0 release ;)

¥

** Changed in: quam-plures
    Milestone: None => 0.0.0

** Changed in: quam-plures
       Status: New => Triaged

-- 
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: 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';

¥