[Pkg-gnupg-commit] [gnupg2] 104/292: g10: Fix a column's type in TOFU DB.

Daniel Kahn Gillmor dkg at fifthhorseman.net
Mon Nov 21 06:31:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch master
in repository gnupg2.

commit 78eda335fd1c29038b74b9cc912b6a4515fccd9f
Author: Neal H. Walfield <neal at g10code.com>
Date:   Wed Oct 12 21:37:34 2016 +0200

    g10: Fix a column's type in TOFU DB.
    
    * g10/tofu.c (initdb): Change policy from a boolean to an integer.
    
    --
    Signed-off-by: Neal H. Walfield <neal at g10code.com>
    Reported-by: Daniel Kahn Gillmor <dkg at fifthhorseman.net>
    
    Note: sqlite ignores type information so this change has no real
    impact.
---
 g10/tofu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/g10/tofu.c b/g10/tofu.c
index 5b01c27..97e7a6e 100644
--- a/g10/tofu.c
+++ b/g10/tofu.c
@@ -606,7 +606,7 @@ initdb (sqlite3 *db)
        "create table bindings\n"
        " (oid INTEGER PRIMARY KEY AUTOINCREMENT,\n"
        "  fingerprint TEXT, email TEXT, user_id TEXT, time INTEGER,\n"
-       "  policy BOOLEAN CHECK (policy in (%d, %d, %d, %d, %d)),\n"
+       "  policy INTEGER CHECK (policy in (%d, %d, %d, %d, %d)),\n"
        "  conflict STRING,\n"
        "  unique (fingerprint, email));\n"
        "create index bindings_fingerprint_email\n"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git



More information about the Pkg-gnupg-commit mailing list