Bugs
* Can't edit a report and set its comment to empty
* Fix PHP5 Strict mode complaints
+* Fix IN/NOT IN to accept text input lists 'a','b'
Translations
* utf traditional chinese (Kuo Chaoyi)
* A class that implements the DB interface for Postgres
* Note: This class uses ADODB and returns RecordSets.
*
- * $Id: Postgres.php,v 1.296 2007/04/01 16:02:07 xzilla Exp $
+ * $Id: Postgres.php,v 1.297 2007/04/05 11:30:03 mr-russ Exp $
*/
// @@@ THOUGHT: What about inherits? ie. use of ONLY???
foreach ($values as $k => $v) {
if ($v != '' || $this->selectOps[$ops[$k]] == 'p') {
$this->fieldClean($k);
- $this->clean($v);
if ($first) {
$sql .= " WHERE ";
$first = false;
// Different query format depending on operator type
switch ($this->selectOps[$ops[$k]]) {
case 'i':
+ // Only clean the field for the inline case
+ // this is because (x), subqueries need to
+ // to allow 'a','b' as input.
+ $this->clean($v);
$sql .= "\"{$k}\" {$ops[$k]} '{$v}'";
break;
case 'p':