Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sqlite3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
俞永鹏
node-sqlite3
Commits
b1a5f0c8
Commit
b1a5f0c8
authored
Mar 20, 2010
by
Orlando Vazquez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
correct some behaviour, and document code a bit
parent
edf899c5
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
sqlite3_bindings.cc
sqlite3_bindings.cc
+6
-2
No files found.
sqlite3_bindings.cc
View file @
b1a5f0c8
...
...
@@ -330,6 +330,7 @@ protected:
Local
<
Value
>
argv
[
2
];
int
argc
=
0
;
// if the prepare failed
if
(
req
->
result
!=
SQLITE_OK
)
{
argv
[
0
]
=
Exception
::
Error
(
String
::
New
(
"Error preparing statement"
));
argc
=
1
;
...
...
@@ -386,9 +387,10 @@ protected:
// possible in the case where there are no variable placeholders/bindings
// in the SQL.
if
(
rc
==
SQLITE_OK
&&
!
sqlite3_bind_parameter_count
(
prep_req
->
stmt
))
{
// if (rc == SQLITE_OK) {
rc
=
sqlite3_step
(
prep_req
->
stmt
);
req
->
int1
=
rc
;
// no more rows to return, clean up statement
if
(
rc
==
SQLITE_DONE
)
{
rc
=
sqlite3_finalize
(
prep_req
->
stmt
);
prep_req
->
stmt
=
NULL
;
...
...
@@ -862,9 +864,11 @@ protected:
sqlite3_stmt
*
stmt
=
*
sto
;
int
rc
;
// check if we have already taken a step immediately after prepare
if
(
step_req
->
first_rc
!=
-
1
)
{
rc
=
req
->
result
=
step_req
->
first_rc
;
}
else
{
}
else
{
rc
=
req
->
result
=
sqlite3_step
(
stmt
);
}
...
...
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