mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-12 07:11:42 +09:00
Added unit tests for correlated subqueries - select, from, where.
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8556 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
5d1eb1c21e
commit
1353ade0c2
41 changed files with 661 additions and 256 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
class Helper {
|
||||
function cleanQuery($query){
|
||||
static function cleanQuery($query){
|
||||
$query = trim(preg_replace('/\s+/', ' ',$query));
|
||||
$query = str_replace(" , ", ', ', $query);
|
||||
$query = str_replace("( ", '(', $query);
|
||||
|
|
@ -9,6 +9,12 @@
|
|||
$query = strtolower($query);
|
||||
return $query;
|
||||
}
|
||||
|
||||
static function getXmlObject($xml_file){
|
||||
$xmlParser = XmlQueryParser::getInstance();
|
||||
return $xmlParser->getXmlFileContent($xml_file);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue