fix recreation of temp. table if requested

table was just emptied by not removed
This commit is contained in:
Uwe Steinmann 2021-09-29 14:52:22 +02:00
parent dc48e5da2c
commit 8cd08a6f08

View File

@ -520,14 +520,14 @@ class SeedDMS_Core_DatabaseAccess {
"GROUP BY `tblDocumentReviewLog`.`reviewID` "; //.
// "ORDER BY `maxLogID`";
}
if (!$this->_ttreviewid) {
if (!$this->_ttreviewid) {
if (!$this->getResult($queryStr))
return false;
$this->_ttreviewid=true;
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttreviewid`"))
if (is_bool($override) && $override) {
if (!$this->getResult("DROP TABLE IF EXISTS `ttreviewid`"))
return false;
if (!$this->getResult($queryStr))
return false;
@ -568,7 +568,7 @@ class SeedDMS_Core_DatabaseAccess {
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttapproveid`"))
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttapproveid`"))
return false;
if (!$this->getResult($queryStr))
return false;
@ -609,7 +609,7 @@ class SeedDMS_Core_DatabaseAccess {
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttstatid`"))
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttstatid`"))
return false;
if (!$this->getResult($queryStr))
return false;
@ -650,7 +650,7 @@ class SeedDMS_Core_DatabaseAccess {
}
else {
if (is_bool($override) && $override) {
if (!$this->getResult("DELETE FROM `ttcontentid`"))
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttcontentid`"))
return false;
if (!$this->getResult($queryStr))
return false;