mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-10-10 02:52:40 +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` "; //.
|
"GROUP BY `tblDocumentReviewLog`.`reviewID` "; //.
|
||||||
// "ORDER BY `maxLogID`";
|
// "ORDER BY `maxLogID`";
|
||||||
}
|
}
|
||||||
if (!$this->_ttreviewid) {
|
if (!$this->_ttreviewid) {
|
||||||
if (!$this->getResult($queryStr))
|
if (!$this->getResult($queryStr))
|
||||||
return false;
|
return false;
|
||||||
$this->_ttreviewid=true;
|
$this->_ttreviewid=true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (is_bool($override) && $override) {
|
if (is_bool($override) && $override) {
|
||||||
if (!$this->getResult("DELETE FROM `ttreviewid`"))
|
if (!$this->getResult("DROP TABLE IF EXISTS `ttreviewid`"))
|
||||||
return false;
|
return false;
|
||||||
if (!$this->getResult($queryStr))
|
if (!$this->getResult($queryStr))
|
||||||
return false;
|
return false;
|
||||||
|
@ -568,7 +568,7 @@ class SeedDMS_Core_DatabaseAccess {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (is_bool($override) && $override) {
|
if (is_bool($override) && $override) {
|
||||||
if (!$this->getResult("DELETE FROM `ttapproveid`"))
|
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttapproveid`"))
|
||||||
return false;
|
return false;
|
||||||
if (!$this->getResult($queryStr))
|
if (!$this->getResult($queryStr))
|
||||||
return false;
|
return false;
|
||||||
|
@ -609,7 +609,7 @@ class SeedDMS_Core_DatabaseAccess {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (is_bool($override) && $override) {
|
if (is_bool($override) && $override) {
|
||||||
if (!$this->getResult("DELETE FROM `ttstatid`"))
|
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttstatid`"))
|
||||||
return false;
|
return false;
|
||||||
if (!$this->getResult($queryStr))
|
if (!$this->getResult($queryStr))
|
||||||
return false;
|
return false;
|
||||||
|
@ -650,7 +650,7 @@ class SeedDMS_Core_DatabaseAccess {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
if (is_bool($override) && $override) {
|
if (is_bool($override) && $override) {
|
||||||
if (!$this->getResult("DELETE FROM `ttcontentid`"))
|
if (!$this->getResult("DROP TABLE IF NOT EXISTS `ttcontentid`"))
|
||||||
return false;
|
return false;
|
||||||
if (!$this->getResult($queryStr))
|
if (!$this->getResult($queryStr))
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user