mirror of
git://git.gnupg.org/gnupg.git
synced 2025-02-01 16:33:02 +01:00
kbx: Make sure the tables are joined in a select.
* kbx/backend-sqlite.c (run_select_statement): Join the tables. -- For whatever reasons that part was missing or got lost before committing.
This commit is contained in:
parent
c0625c15c1
commit
41a8824436
@ -775,7 +775,7 @@ run_select_statement (be_sqlite_local_t ctx,
|
||||
if (!ctx->select_stmt)
|
||||
err = run_sql_prepare ("SELECT p.ubid, p.type, p.keyblob"
|
||||
" FROM pubkey as p, fingerprint as f"
|
||||
" WHERE f.kid = ?1",
|
||||
" WHERE p.ubid = f.ubid AND f.kid = ?1",
|
||||
&ctx->select_stmt);
|
||||
if (!err)
|
||||
err = run_sql_bind_int64 (ctx->select_stmt, 1,
|
||||
@ -786,7 +786,7 @@ run_select_statement (be_sqlite_local_t ctx,
|
||||
if (!ctx->select_stmt)
|
||||
err = run_sql_prepare ("SELECT p.ubid, p.type, p.keyblob"
|
||||
" FROM pubkey as p, fingerprint as f"
|
||||
" WHERE f.fpr = ?1",
|
||||
" WHERE p.ubid = f.ubid AND f.fpr = ?1",
|
||||
&ctx->select_stmt);
|
||||
if (!err)
|
||||
err = run_sql_bind_blob (ctx->select_stmt, 1,
|
||||
@ -797,7 +797,7 @@ run_select_statement (be_sqlite_local_t ctx,
|
||||
if (!ctx->select_stmt)
|
||||
err = run_sql_prepare ("SELECT p.ubid, p.type, p.keyblob"
|
||||
" FROM pubkey as p, fingerprint as f"
|
||||
" WHERE f.keygrip = ?1",
|
||||
" WHERE p.ubid = f.ubid AND f.keygrip = ?1",
|
||||
&ctx->select_stmt);
|
||||
if (!err)
|
||||
err = run_sql_bind_blob (ctx->select_stmt, 1,
|
||||
|
Loading…
x
Reference in New Issue
Block a user