summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2020-02-09 17:08:24 +0100
committerhorchi <vdr@jwendel.de>2020-02-09 17:08:24 +0100
commit35395e6bf84581526e17f8b4c966ac9f39e437bc (patch)
tree3a507e4abbef444a1c2651cfce9d160a00258442
parent71cd4593136eeaf7612f6ca44e61172221d77b77 (diff)
downloadvdr-epg-daemon-35395e6bf84581526e17f8b4c966ac9f39e437bc.tar.gz
vdr-epg-daemon-35395e6bf84581526e17f8b4c966ac9f39e437bc.tar.bz2
2019-12-22: version 1.1.150 (horchi)\n - bugfix: Added missing commit after timer cleanup\n\n
-rw-r--r--HISTORY.h7
-rw-r--r--lib/db.c6
-rw-r--r--update.c2
3 files changed, 13 insertions, 2 deletions
diff --git a/HISTORY.h b/HISTORY.h
index d4b4ed1..a9b00ba 100644
--- a/HISTORY.h
+++ b/HISTORY.h
@@ -4,8 +4,8 @@
* -----------------------------------
*/
-#define _VERSION "1.1.149"
-#define VERSION_DATE "15.12.2019"
+#define _VERSION "1.1.150"
+#define VERSION_DATE "22.12.2019"
#define DB_API 7
#ifdef GIT_REV
@@ -18,6 +18,9 @@
* ------------------------------------
*
+2019-12-22: version 1.1.150 (horchi)
+ - bugfix: Added missing commit after timer cleanup
+
2019-12-15: version 1.1.149 (horchi)
- added: Added cleanup for old wasted timers
- added: Added _endtime to table timers
diff --git a/lib/db.c b/lib/db.c
index 7c3b57c..41c8d68 100644
--- a/lib/db.c
+++ b/lib/db.c
@@ -952,6 +952,12 @@ int cDbTable::validateStructure(int allowAlter)
strcasecmp(fieldInfo->description.c_str(), getField(i)->getDescription()) != 0 ||
(strcasecmp(fieldInfo->def.c_str(), getField(i)->getDefault()) != 0 && !(getField(i)->getType() & ftPrimary)))
{
+ if (strcasecmp(fieldInfo->columnFormat.c_str(), colType) != 0)
+ tell(4, "Debug: Format of '%s' changed from '%s' to '%s'", getField(i)->getDbName(), fieldInfo->columnFormat.c_str(), colType);
+
+ if (strcasecmp(fieldInfo->description.c_str(), getField(i)->getDescription()) != 0)
+ tell(4, "Debug: Description of '%s' changed from '%s' to '%s'", getField(i)->getDbName(), fieldInfo->description.c_str(), getField(i)->getDescription());
+
alterModifyField(getField(i));
}
}
diff --git a/update.c b/update.c
index 986361f..281ccdc 100644
--- a/update.c
+++ b/update.c
@@ -1723,6 +1723,8 @@ void cEpgd::loop()
" state = 'F', action = 'A', info = 'cleanuped'"
" where (state = 'R' or state = 'P')"
" and from_unixtime(_endtime) < (now() - interval 5 minute);");
+
+ connection->commit();
}
if (!dbConnected())