summaryrefslogtreecommitdiff
path: root/lib/db.c
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2019-11-28 13:33:41 +0100
committerhorchi <vdr@jwendel.de>2019-11-28 13:33:41 +0100
commit42d5a8fee255c517c5e4d5cb200bff5a18654baf (patch)
tree9a440599fc296d5c278111ee31beffe1861e92e1 /lib/db.c
parentf9c8dd36d36efa145806f7bef97b46382a5442f3 (diff)
downloadvdr-plugin-epg2vdr-42d5a8fee255c517c5e4d5cb200bff5a18654baf.tar.gz
vdr-plugin-epg2vdr-42d5a8fee255c517c5e4d5cb200bff5a18654baf.tar.bz2
2019-11-28: version 1.1.102 (horchi)\n - added: Support of python 3.8 (by Alexander Grothe)\n\n1.1.102
Diffstat (limited to 'lib/db.c')
-rw-r--r--lib/db.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/db.c b/lib/db.c
index 2554cd8..84f4267 100644
--- a/lib/db.c
+++ b/lib/db.c
@@ -1379,11 +1379,19 @@ int cDbConnection::errorSql(cDbConnection* connection, const char* prefix,
if (error == CR_SERVER_LOST ||
error == CR_SERVER_GONE_ERROR ||
+// for compatibility with newer versions of MariaDB library
+#ifdef CR_INVALID_CONN_HANDLE
error == CR_INVALID_CONN_HANDLE ||
+#endif
error == CR_COMMANDS_OUT_OF_SYNC ||
error == CR_SERVER_LOST_EXTENDED ||
error == CR_STMT_CLOSED ||
+// for compatibility with newer versions of MariaDB library
+#ifdef CR_CONN_UNKNOW_PROTOCOL
error == CR_CONN_UNKNOW_PROTOCOL ||
+#else
+ error == CR_CONN_UNKNOWN_PROTOCOL ||
+#endif
error == CR_UNSUPPORTED_PARAM_TYPE ||
error == CR_NO_PREPARE_STMT ||
error == CR_SERVER_HANDSHAKE_ERR ||