summaryrefslogtreecommitdiffstats
path: root/mansearch.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2013-12-27 01:16:54 +0000
committerIngo Schwarze <schwarze@openbsd.org>2013-12-27 01:16:54 +0000
commit18a2a718bac141e57bedb2dc29be4c0d6ec25d8c (patch)
treecdd9e43e42ab75b46f59decc7f3ed8365887acca /mansearch.c
parentae3b825fbd548ff1e6234f6ef6df0addabb6185e (diff)
downloadmandoc-18a2a718bac141e57bedb2dc29be4c0d6ec25d8c.tar.gz
Add an additional mlinks table to the database, redundant for now,
both because it contains nothing but a subset of the data of the existing mpages table and because the relationship of mpage and mlink entries is still 1:1. But all that will eventually change.
Diffstat (limited to 'mansearch.c')
-rw-r--r--mansearch.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mansearch.c b/mansearch.c
index 42905954..ff864c7d 100644
--- a/mansearch.c
+++ b/mansearch.c
@@ -363,9 +363,9 @@ sql_statement(const struct expr *e, const char *arch, const char *sec)
size_t sz;
sql = mandoc_strdup
- ("SELECT docid,bits,key,file,desc,form,sec,arch "
+ ("SELECT pageid,bits,key,file,desc,form,sec,arch "
"FROM keys "
- "INNER JOIN docs ON docs.id=keys.docid "
+ "INNER JOIN mpages ON mpages.id=keys.pageid "
"WHERE ");
sz = strlen(sql);
substrsz = strlen(substr);