/dev/trunk

To get this branch, use:
bzr branch http://darksoft.org/webbzr/dev/trunk

« back to all changes in this revision

Viewing changes to classes/cache/cachedb.php

  • Committer: Suren A. Chilingaryan
  • Date: 2013-01-29 16:49:48 UTC
  • Revision ID: csa@dside.dyndns.org-20130129164948-93mh7m9t20pfja9t
Really support INF and NAN in the caching code

Show diffs side-by-side

added added

removed removed

Lines of Context:
1039
1039
             case CACHE::MYSQL_ER_BAD_FIELD_ERROR:
1040
1040
                // May be we have INF in the column list
1041
1041
                $fixed_query = preg_replace("/,\s+-?(INF|NAN)/", ", NULL", $query, -1, $reps);
1042
 
                if (($new_query)&&($reps > 0)) {
 
1042
                if (($fixed_query)&&($reps > 0)) {
1043
1043
                    $query = $fixed_query;
1044
1044
                    if (@mysql_query($query, $this->dbh)) $handled = true;
1045
1045
                }