Added column type information inside QueryArgument objects.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8451 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-06-06 09:24:31 +00:00
parent a85aec5dc0
commit d071909cde

View file

@ -3,6 +3,7 @@
class Argument {
var $value;
var $name;
var $type;
var $isValid;
var $errorMessage;
@ -18,6 +19,10 @@
return $this->value;
}
function getType(){
return $this->type;
}
function isValid(){
return $this->isValid;
}
@ -34,6 +39,9 @@
function escapeValue($column_type){
if(!isset($this->value)) return;
if($column_type === '') return;
$this->type = $column_type;
//if($column_type === '') $column_type = 'varchar';
if(in_array($column_type, array('date', 'varchar', 'char','text', 'bigtext'))){
if(!is_array($this->value))