projects
/
Pman.Base
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73ef7e3
)
Pman/Roo.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Nov 2010 04:45:52 +0000
(12:45 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 11 Nov 2010 04:45:52 +0000
(12:45 +0800)
Pman/Roo.php
patch
|
blob
|
history
diff --git
a/Pman/Roo.php
b/Pman/Roo.php
index
9939266
..
634b146
100644
(file)
--- a/
Pman/Roo.php
+++ b/
Pman/Roo.php
@@
-810,6
+810,8
@@
class Pman_Roo extends Pman
$ar = array();
break;
}
+ // FIXME: note this is not typesafe for anything other than mysql..
+
if (!is_numeric($v) || !is_long($v)) {
$quote = true;
}
@@
-826,7
+828,8
@@
class Pman_Roo extends Pman
if ($key[0] == '!' && in_array(substr($key, 1), array_keys($this->cols))) {
-
+
+
$x->whereAdd( $x->tableName() .'.' .substr($key, 1) . ' != ' .
(is_numeric($val) ? $val : "'". $x->escape($val) . "'")
);