Added classes for testing db queries directly on a test database. Fixed a few insert bugs.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8600 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-07-14 17:00:16 +00:00
parent 54ef159878
commit 9606e263e8
9 changed files with 173 additions and 21 deletions

View file

@ -47,7 +47,7 @@
$dbParser = XmlQueryParser::getDBParser();
return $dbParser->parseExpression($value);
}
if(!isset($value) || $value === '') return null;
if(!isset($value)) return null;
if(in_array($this->type, array('date', 'varchar', 'char','text', 'bigtext'))){
if(!is_array($value))
$value = $this->_escapeStringValue ($value);