/[drupal]/contributions/modules/storm/storm.module
ViewVC logotype

Diff of /contributions/modules/storm/storm.module

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.10.4.7, Thu Jul 24 18:46:10 2008 UTC revision 1.10.4.8, Fri Aug 1 08:15:09 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: storm.module,v 1.10.4.6 2008/07/23 19:37:48 robertogerola Exp $  // $Id: storm.module,v 1.10.4.7 2008/07/24 18:46:10 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 499  function storm_db_rewrite_sql($query, $p Line 499  function storm_db_rewrite_sql($query, $p
499          case 'mysql':          case 'mysql':
500          case 'mysqli':          case 'mysqli':
501            $where  = '(';            $where  = '(';
502            $where .= "case ${primary_table}.type ";            $where .= " CASE ${primary_table}.type ";
503            foreach ($conditions as $condition) {            foreach ($conditions as $condition) {
504              $where .= $condition .' ';              $where .= $condition .' ';
505            }            }
506            $where .= 'else 1 end';            $where .= ' ELSE 1 END ';
507            $where .= ')=1';            $where .= ' )=1 ';
508            $return['where'] = $where;            $return['where'] = $where;
509          break;          break;
510          case 'pgsql':          case 'pgsql':

Legend:
Removed from v.1.10.4.7  
changed lines
  Added in v.1.10.4.8

  ViewVC Help
Powered by ViewVC 1.1.2