Permalink
Browse files

sqlite3: SQLITE_TRANSIENTs

In table basecompoundref, use SQLITE_TRANSIENT for
base, derived, refid
  • Loading branch information...
groleo committed Feb 1, 2014
1 parent cd4bdf6 commit 6f38dd245d56aaa9b6c8e966a4ccebe2f66ceb7d
Showing with 4 additions and 4 deletions.
  1. +4 −4 src/sqlite3gen.cpp
@@ -845,19 +845,19 @@ static void generateSqlite3ForClass(sqlite3 *db, ClassDef *cd)
BaseClassDef *bcd;
for (bcli.toFirst();(bcd=bcli.current());++bcli)
{
bindTextParameter(i_s_basecompoundref,":refid",bcd->classDef->getOutputFileBase());
bindTextParameter(i_s_basecompoundref,":refid",bcd->classDef->getOutputFileBase(),FALSE);
bindIntParameter(i_s_basecompoundref,":prot",bcd->prot);
bindIntParameter(i_s_basecompoundref,":virt",bcd->virt);
if (!bcd->templSpecifiers.isEmpty())
{
bindTextParameter(i_s_basecompoundref,":base",insertTemplateSpecifierInScope(bcd->classDef->name(),bcd->templSpecifiers));
bindTextParameter(i_s_basecompoundref,":base",insertTemplateSpecifierInScope(bcd->classDef->name(),bcd->templSpecifiers),FALSE);
}
else
{
bindTextParameter(i_s_basecompoundref,":base",bcd->classDef->displayName());
bindTextParameter(i_s_basecompoundref,":base",bcd->classDef->displayName(),FALSE);
}
bindTextParameter(i_s_basecompoundref,":derived",cd->displayName());
bindTextParameter(i_s_basecompoundref,":derived",cd->displayName(),FALSE);
if (-1==step(db,i_s_basecompoundref)) {
sqlite3_clear_bindings(i_s_basecompoundref);
continue;

0 comments on commit 6f38dd2

Please sign in to comment.