#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:
haneul 2010-01-20 02:41:11 +00:00
parent e55b80cd6a
commit cfd6ca2e9c

View file

@ -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);
}
}
?>