mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 08:55:54 +00:00
fix recreation of temp. table if requested
table was just emptied by not removed
This commit is contained in:
parent
dc48e5da2c
commit
8cd08a6f08
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user