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
328d52d7
Commit
328d52d7
authored
Aug 07, 2013
by
Dane Springmeyer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #179 from mscdex/code-improvements
Code improvements
parents
1c93a074
4884859a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
statement.cc
src/statement.cc
+4
-7
No files found.
src/statement.cc
View file @
328d52d7
...
...
@@ -191,9 +191,6 @@ template <class T> Values::Field*
else
if
(
source
->
IsDate
())
{
return
new
Values
::
Float
(
pos
,
source
->
NumberValue
());
}
else
if
(
source
->
IsUndefined
())
{
return
NULL
;
}
else
{
return
NULL
;
}
...
...
@@ -261,7 +258,7 @@ bool Statement::Bind(const Parameters parameters) {
Parameters
::
const_iterator
it
=
parameters
.
begin
();
Parameters
::
const_iterator
end
=
parameters
.
end
();
for
(;
it
<
end
;
it
++
)
{
for
(;
it
<
end
;
++
it
)
{
Values
::
Field
*
field
=
*
it
;
if
(
field
!=
NULL
)
{
...
...
@@ -545,7 +542,7 @@ void Statement::Work_AfterAll(uv_work_t* req) {
Local
<
Array
>
result
(
Array
::
New
(
baton
->
rows
.
size
()));
Rows
::
const_iterator
it
=
baton
->
rows
.
begin
();
Rows
::
const_iterator
end
=
baton
->
rows
.
end
();
for
(
int
i
=
0
;
it
<
end
;
it
++
,
i
++
)
{
for
(
int
i
=
0
;
it
<
end
;
++
it
,
i
++
)
{
result
->
Set
(
i
,
RowToJS
(
*
it
));
delete
*
it
;
}
...
...
@@ -671,7 +668,7 @@ void Statement::AsyncEach(uv_async_t* handle, int status) {
Rows
::
const_iterator
it
=
rows
.
begin
();
Rows
::
const_iterator
end
=
rows
.
end
();
for
(
int
i
=
0
;
it
<
end
;
it
++
,
i
++
)
{
for
(
int
i
=
0
;
it
<
end
;
++
it
,
i
++
)
{
argv
[
1
]
=
RowToJS
(
*
it
);
async
->
retrieved
++
;
TRY_CATCH_CALL
(
async
->
stmt
->
handle_
,
async
->
item_cb
,
2
,
argv
);
...
...
@@ -745,7 +742,7 @@ Local<Object> Statement::RowToJS(Row* row) {
Row
::
const_iterator
it
=
row
->
begin
();
Row
::
const_iterator
end
=
row
->
end
();
for
(
int
i
=
0
;
it
<
end
;
it
++
,
i
++
)
{
for
(
int
i
=
0
;
it
<
end
;
++
it
,
i
++
)
{
Values
::
Field
*
field
=
*
it
;
Local
<
Value
>
value
;
...
...
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