summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorTravis A. Everett <travis.a.everett@gmail.com>2015-03-24 12:20:21 (GMT)
committerTravis A. Everett <travis.a.everett@gmail.com>2015-03-24 12:21:10 (GMT)
commiteffbbcc72295f5843377ddce2794bcf6e7000322 (patch)
treecba2a5b7ae98e6e5bd3db8d7f04e6abbe6032f74 /src
parent15b93a26e99289cf0ac929e8a8fd64224f808460 (diff)
downloadDoxygen-effbbcc72295f5843377ddce2794bcf6e7000322.zip
Doxygen-effbbcc72295f5843377ddce2794bcf6e7000322.tar.gz
Doxygen-effbbcc72295f5843377ddce2794bcf6e7000322.tar.bz2
Fix for bug 746673.
Resolves a typo (dervied->derived) in sqlite prepared query var, which was preventing the derivedcompounddef table from populating. Fixing this issue also exposed an underlying problem where junk data was showing up in two columns. Porting some if/else logic from the code that inserts to basecompounddef seems to have fixed this, as well.
Diffstat (limited to 'src')
-rw-r--r--src/sqlite3gen.cpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index acd3995..40d744a 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -754,7 +754,7 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def)
bindIntParameter(memberdef_insert,":new",md->isNew());
bindIntParameter(memberdef_insert,":optional",md->isOptional());
bindIntParameter(memberdef_insert,":required",md->isRequired());
-
+
bindIntParameter(memberdef_insert,":virt",md->virtualness());
}
// place in the arguments and linkify the arguments
@@ -1027,9 +1027,16 @@ static void generateSqlite3ForClass(sqlite3 *db, ClassDef *cd)
BaseClassDef *bcd;
for (bcli.toFirst();(bcd=bcli.current());++bcli)
{
- bindTextParameter(derivedcompoundref_insert,":base",cd->displayName());
- bindTextParameter(derivedcompoundref_insert,":dervied",bcd->classDef->displayName());
- bindTextParameter(derivedcompoundref_insert,":refid",bcd->classDef->getOutputFileBase());
+ bindTextParameter(derivedcompoundref_insert,":base",cd->displayName(),FALSE);
+ if (!bcd->templSpecifiers.isEmpty())
+ {
+ bindTextParameter(derivedcompoundref_insert,":derived",insertTemplateSpecifierInScope(bcd->classDef->name(),bcd->templSpecifiers),FALSE);
+ }
+ else
+ {
+ bindTextParameter(derivedcompoundref_insert,":derived",bcd->classDef->displayName(),FALSE);
+ }
+ bindTextParameter(derivedcompoundref_insert,":refid",bcd->classDef->getOutputFileBase(),FALSE);
bindIntParameter(derivedcompoundref_insert,":prot",bcd->prot);
bindIntParameter(derivedcompoundref_insert,":virt",bcd->virt);
step(db,derivedcompoundref_insert);