summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorhorchi <vdr@jwendel.de>2018-05-24 08:13:55 +0200
committerhorchi <vdr@jwendel.de>2018-05-24 08:13:55 +0200
commit1cbab41a38411ded875924d8b3cdaba68bafd574 (patch)
tree51c6f435007cb36369f660330e68b28771b9a853 /lib
parentc8bd1c70a8d10ee13fd8d0b12adf9655dcaa8634 (diff)
downloadvdr-epg-daemon-1cbab41a38411ded875924d8b3cdaba68bafd574.tar.gz
vdr-epg-daemon-1cbab41a38411ded875924d8b3cdaba68bafd574.tar.bz2
2018-05-14: version 1.1.141 (horchi)\n added: Compatibility for newer MariaBD librarys (patch by provided by marco)\n added: execution shell to scripts\n\n1.1.141
Diffstat (limited to 'lib')
-rw-r--r--lib/db.c8
-rw-r--r--lib/db.h2
2 files changed, 9 insertions, 1 deletions
diff --git a/lib/db.c b/lib/db.c
index 2dbca80..7c3b57c 100644
--- a/lib/db.c
+++ b/lib/db.c
@@ -1376,11 +1376,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 MariaBD 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 MariaBD 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 ||
diff --git a/lib/db.h b/lib/db.h
index efb5ebf..6d22810 100644
--- a/lib/db.h
+++ b/lib/db.h
@@ -1296,7 +1296,7 @@ class cDbProcedure : public cDbService
int created()
{
if (!connection || !connection->getMySql())
- return fail;
+ return no;
cDbStatement stmt(connection);