Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
doxverilog
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
doxverilog
Commits
ec839803
Commit
ec839803
authored
Jun 18, 2013
by
Adrian Negreanu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sqlite3: fix some copy-paste
Signed-off-by:
Adrian Negreanu
<
adrian.m.negreanu@intel.com
>
parent
16bd3df9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sqlite3gen.cpp
src/sqlite3gen.cpp
+3
-3
No files found.
src/sqlite3gen.cpp
View file @
ec839803
...
...
@@ -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
,
i
d
_s_files
,
TRUE
);
if
(
id
==
0
)
{
// insert it
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment