mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
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:
parent
9ef9069ba2
commit
69bca759f6
6 changed files with 89 additions and 20 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue