mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-14 00:39:57 +09:00
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:
parent
a85aec5dc0
commit
d071909cde
1 changed files with 8 additions and 0 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue