mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-10 12:32:14 +09:00
Fixed Insert and UpdateExpression bugs - error : Call to a member function getValue() on a non-object in ./classes/db/queryparts/expression/UpdateExpression.class.php
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@9101 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
81fea3d67d
commit
f1c9668478
2 changed files with 12 additions and 10 deletions
|
|
@ -1,32 +1,33 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @class InsertExpression
|
* @class InsertExpression
|
||||||
* @author Arnia Software
|
* @author Arnia Software
|
||||||
* @brief
|
* @brief
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
class InsertExpression extends Expression {
|
class InsertExpression extends Expression {
|
||||||
var $argument;
|
var $argument;
|
||||||
|
|
||||||
function InsertExpression($column_name, $argument){
|
function InsertExpression($column_name, $argument){
|
||||||
parent::Expression($column_name);
|
parent::Expression($column_name);
|
||||||
$this->argument = $argument;
|
$this->argument = $argument;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getValue($with_values = true){
|
function getValue($with_values = true){
|
||||||
if($with_values)
|
if($with_values)
|
||||||
return $this->argument->getValue();
|
return $this->argument->getValue();
|
||||||
return '?';
|
return '?';
|
||||||
}
|
}
|
||||||
|
|
||||||
function show(){
|
function show(){
|
||||||
$value = $this->argument->getValue();
|
if(!$this->argument) return false;
|
||||||
if(!isset($value)) return false;
|
$value = $this->argument->getValue();
|
||||||
return true;
|
if(!isset($value)) return false;
|
||||||
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getArgument(){
|
function getArgument(){
|
||||||
return $this->argument;
|
return $this->argument;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
function show(){
|
function show(){
|
||||||
|
if(!$this->argument) return false;
|
||||||
if(!$this->argument->getValue()) return false;
|
if(!$this->argument->getValue()) return false;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue