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