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
dae75342
Commit
dae75342
authored
Mar 14, 2010
by
Orlando Vazquez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix node_g breakage
parent
5f45466b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
10 deletions
+12
-10
sqlite3_bindings.cc
sqlite3_bindings.cc
+7
-5
test3.js
test3.js
+5
-5
No files found.
sqlite3_bindings.cc
View file @
dae75342
...
...
@@ -334,14 +334,16 @@ protected:
argv
[
0
]
=
Exception
::
Error
(
String
::
New
(
"Error preparing statement"
));
}
else
{
Local
<
Value
>
arg
=
External
::
New
(
prep_req
->
stmt
);
Persistent
<
Object
>
statement
(
Statement
::
constructor_template
->
GetFunction
()
->
NewInstance
(
1
,
&
arg
));
if
(
prep_req
->
tail
)
Local
<
Value
>
arg
(
External
::
New
(
prep_req
->
stmt
));
Persistent
<
Object
>
statement
(
Statement
::
constructor_template
->
GetFunction
()
->
NewInstance
(
1
,
&
arg
));
if
(
prep_req
->
tail
)
{
statement
->
Set
(
String
::
New
(
"tail"
),
String
::
New
(
prep_req
->
tail
));
}
argv
[
0
]
=
Local
<
Value
>::
New
(
Undefined
());
argv
[
1
]
=
scope
.
Close
(
statement
);
argv
[
1
]
=
Local
<
Value
>::
New
(
statement
);
}
TryCatch
try_catch
;
...
...
test3.js
View file @
dae75342
...
...
@@ -13,9 +13,9 @@ db.open("mydatabase.db", function () {
puts
(
"query callback "
+
inspect
(
result
));
equal
(
result
.
length
,
2
);
});
db
.
query
(
"SELECT 1"
,
function
(
error
,
result
)
{
ok
(
!
error
);
puts
(
"query callback "
+
inspect
(
result
));
equal
(
result
.
length
,
1
);
});
//
db.query("SELECT 1", function (error, result) {
//
ok(!error);
//
puts("query callback " + inspect(result));
//
equal(result.length, 1);
//
});
});
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