Permalink
Browse files

sqlite3: fix constness

:const was binded only when al->constSpecifier was non-NULL.
Fix that by removing the test on al->constSpecifier
  • Loading branch information...
groleo committed Jun 8, 2015
1 parent a92e614 commit 90d89d8a2a2be931742c7291cd70e4a980035ae1
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/sqlite3gen.cpp
@@ -740,10 +740,11 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def)
default:
break;
}
if (isFunc)
{
ArgumentList *al = md->argumentList();
if (al!=0 && al->constSpecifier)
if (al!=0)
{
bindIntParameter(memberdef_insert,":const",al->constSpecifier);
}

0 comments on commit 90d89d8

Please sign in to comment.