projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d20981c
)
Pman/Roo.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Nov 2010 04:29:30 +0000
(12:29 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Nov 2010 04:29:30 +0000
(12:29 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
3e438e7
..
b96cfaa
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-856,10
+856,24
@@
class Pman_Roo extends Pman
$q_filtered[$key] = $val;
}
+ if (isset($this->cols[$key]) && strpos( $this->cols[$key], '.') !== false) {
+ $quote = false;
+ if (!is_numeric($v) || !is_long($v)) {
+ $quote = true;
+ }
+ $x->whereAdd( "$key = " . ($quote ? "'". $x->escape($v) ."'" : $v));
+
+ }
+
+
continue;
}
}
+
$x->setFrom($q_filtered);
+
+
+
// nice generic -- let's get rid of it.. where is it used!!!!
// used by: