Fix for DELETE statement. MySql class refactoring to use new DBClasses.

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0-DB@8449 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ucorina 2011-06-03 14:50:12 +00:00
parent 9ef9069ba2
commit 69bca759f6
6 changed files with 89 additions and 20 deletions

View file

@ -483,6 +483,11 @@
function getDeleteSql($query){
$sql = 'DELETE ';
// TODO Add support for deleting based on alias, for both simple FROM and multi table join FROM clause
$tables = $query->getTables();
$sql .= $tables[0]->getAlias();
$from = $query->getFromString();
if($from == '') return new Object(-1, "Invalid query");