From 90d89d8a2a2be931742c7291cd70e4a980035ae1 Mon Sep 17 00:00:00 2001 From: Adrian Negreanu Date: Mon, 8 Jun 2015 11:20:52 +0300 Subject: sqlite3: fix constness :const was binded only when al->constSpecifier was non-NULL. Fix that by removing the test on al->constSpecifier --- src/sqlite3gen.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp index 40d744a..580042f 100644 --- a/src/sqlite3gen.cpp +++ b/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); } -- cgit v0.12