mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#18625684 : add a function dropping table to DB class
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7185 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e55b80cd6a
commit
cfd6ca2e9c
1 changed files with 5 additions and 1 deletions
|
|
@ -326,7 +326,6 @@
|
|||
$output = $this->_executeSelectAct($output);
|
||||
break;
|
||||
}
|
||||
|
||||
if($this->isError()) $output = $this->getError();
|
||||
else if(!is_a($output, 'Object') && !is_subclass_of($output, 'Object')) $output = new Object();
|
||||
$output->add('_query', $this->query);
|
||||
|
|
@ -613,5 +612,10 @@
|
|||
return $result;
|
||||
}
|
||||
|
||||
function dropTable($table_name){
|
||||
if(!$table_name) return;
|
||||
$query = sprintf("drop table %s%s", $this->prefix, $table_name);
|
||||
$this->_query($query);
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue