summaryrefslogtreecommitdiffstats
path: root/src/sqlite3gen.cpp
diff options
context:
space:
mode:
authorAdrian Negreanu <adrian.m.negreanu@intel.com>2013-06-18 16:49:08 (GMT)
committerAdrian Negreanu <adrian.m.negreanu@intel.com>2013-06-18 16:49:08 (GMT)
commitec8398039a374063b08c5ea41569dde8251d2524 (patch)
tree0ae3dfe3cf92b14eaed634af30af1da1fb41d239 /src/sqlite3gen.cpp
parent16bd3df98a3e5d25d25a20e24a2868c84b8ba755 (diff)
downloadDoxygen-ec8398039a374063b08c5ea41569dde8251d2524.zip
Doxygen-ec8398039a374063b08c5ea41569dde8251d2524.tar.gz
Doxygen-ec8398039a374063b08c5ea41569dde8251d2524.tar.bz2
sqlite3: fix some copy-paste
Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Diffstat (limited to 'src/sqlite3gen.cpp')
-rw-r--r--src/sqlite3gen.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sqlite3gen.cpp b/src/sqlite3gen.cpp
index 43a1e76..4c5f3c8 100644
--- a/src/sqlite3gen.cpp
+++ b/src/sqlite3gen.cpp
@@ -240,7 +240,7 @@ static void generateSqlite3ForMember(sqlite3*db,MemberDef *md,Definition *def);
static void bindTextParameter(sqlite3_stmt *stmt,const char *name,const char *value)
{
int idx = sqlite3_bind_parameter_index(stmt, name);
- sqlite3_bind_text(id_s_files, idx, value, -1, SQLITE_STATIC);
+ sqlite3_bind_text(stmt, idx, value, -1, SQLITE_STATIC);
}
static void bindIntParameter(sqlite3_stmt *stmt,const char *name,int value)
@@ -278,10 +278,10 @@ static int insertFile(sqlite3 *db, const char* name)
{
int id=-1;
if (name==0) return -1;
- // see if it's already in DB
+ // see if it's already in DB
bindTextParameter(id_s_files,":name",name);
- id=step(db,i_s_files,TRUE);
+ id=step(db,id_s_files,TRUE);
if (id==0)
{
// insert it