pushZdpDescriptorDb(): add temporary debug prints
@@ -474,7 +474,7 @@ void DeRestPluginPrivate::pushZdpDescriptorDb(quint64 extAddress, quint8 endpoin
if (rc != SQLITE_OK)
{
- DBG_Printf(DBG_INFO, "DB failed %s", sqlite3_errmsg(db));
+ DBG_Printf(DBG_INFO, "DB failed %s\n", sqlite3_errmsg(db));
if (res)
{
rc = sqlite3_finalize(res);
@@ -483,6 +483,13 @@ void DeRestPluginPrivate::pushZdpDescriptorDb(quint64 extAddress, quint8 endpoin
return;
}
+ auto exp = sqlite3_expanded_sql(res);
+ if (exp)
+ {
+ DBG_Printf(DBG_INFO, "DB %s\n", exp);
+ sqlite3_free(exp);
+ }
+
int changes = -1;
rc = sqlite3_step(res);
if (rc == SQLITE_DONE)
@@ -539,7 +546,7 @@ void DeRestPluginPrivate::pushZdpDescriptorDb(quint64 extAddress, quint8 endpoin
if (rc != SQLITE_OK)
{
- DBG_Printf(DBG_INFO, "DB failed %s", sqlite3_errmsg(db));
+ DBG_Printf(DBG_INFO, "DB failed %s\n", sqlite3_errmsg(db));
if (res)
{
rc = sqlite3_finalize(res);
@@ -548,6 +555,13 @@ void DeRestPluginPrivate::pushZdpDescriptorDb(quint64 extAddress, quint8 endpoin
return;
}
+ exp = sqlite3_expanded_sql(res);
+ if (exp)
+ {
+ DBG_Printf(DBG_INFO, "DB %s\n", exp);
+ sqlite3_free(exp);
+ }
+
rc = sqlite3_step(res);
if (rc == SQLITE_DONE)
{
