Bug fixes:

DBCubrid.class.php - remove "WHERE" clause when all conditions are empty
queryargument/QueryArgument.class.php and queryargument/validator/QueryArgumentValidator.class.php - this is for backwords compatibility - there are many xml files that have variable names (var) given with "."
table/TableTag.class.php - autocomplete default table name alias with table name.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8426 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
lickawtl 2011-06-01 12:51:13 +00:00
parent b4ca6896bc
commit 23e991bec0
5 changed files with 14 additions and 8 deletions

View file

@ -8,12 +8,14 @@
var $ignoreValue;
function QueryArgument($tag){
$this->argument_name = $tag->attrs->var;
// HACK (this is for backwords compatibility - there are many xml files that have variable names (var) given with .)
// eg. var = point.memeber_srl (getMemberList query from point module)
$this->argument_name = str_replace('.', '_',$tag->attrs->var);
if(!$this->argument_name) $this->ignoreValue = true;
else $this->ignoreValue = false;
if(!$this->argument_name) $this->argument_name = $tag->attrs->name;
if(!$this->argument_name) $this->argument_name = $tag->attrs->column;
if(!$this->argument_name) $this->argument_name = str_replace('.', '_',$tag->attrs->column);
$name = $tag->attrs->name;
if(!$name) $name = $tag->attrs->column;
@ -26,7 +28,7 @@
if($tag->attrs->operation) $this->operation = $tag->attrs->operation;
require_once(_XE_PATH_.'classes/xml/xmlquery/queryargument/validator/QueryArgumentValidator.class.php');
$this->argument_validator = new QueryArgumentValidator($tag);
$this->argument_validator = new QueryArgumentValidator($tag, $this);
}