The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7929
This e-mail was sent by the LXC bot, direct replies will not reach the author unless they happen to be subscribed to this list. === Description (from pull-request) === Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com>
From d0e58fa8cc9cea7c7e1f6b2119ef607d72e3d83f Mon Sep 17 00:00:00 2001 From: Thomas Parrott <thomas.parr...@canonical.com> Date: Tue, 15 Sep 2020 13:02:05 +0100 Subject: [PATCH] lxd/db: Adds boolean support to doDbQueryScan Signed-off-by: Thomas Parrott <thomas.parr...@canonical.com> --- lxd/db/db.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lxd/db/db.go b/lxd/db/db.go index c0519e8e31..232c0d531f 100644 --- a/lxd/db/db.go +++ b/lxd/db/db.go @@ -494,6 +494,9 @@ func doDbQueryScan(c *Cluster, q string, args []interface{}, outargs []interface case int64: integer := int64(0) ptrargs[i] = &integer + case bool: + boolean := bool(false) + ptrargs[i] = &boolean default: return fmt.Errorf("Bad interface type: %s", t) } @@ -511,6 +514,8 @@ func doDbQueryScan(c *Cluster, q string, args []interface{}, outargs []interface newargs[i] = *ptrargs[i].(*int) case int64: newargs[i] = *ptrargs[i].(*int64) + case bool: + newargs[i] = *ptrargs[i].(*bool) default: return fmt.Errorf("Bad interface type: %s", t) }
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel