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
435c6f47
Commit
435c6f47
authored
Aug 01, 2010
by
Orlando Vazquez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Get rid of debugging puts'
parent
a4c1a756
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
test-affected-rows.js
tests/test-affected-rows.js
+0
-1
test-last-inserted-id.js
tests/test-last-inserted-id.js
+0
-24
No files found.
tests/test-affected-rows.js
View file @
435c6f47
...
...
@@ -38,7 +38,6 @@ var tests = [
if
(
error
)
throw
error
;
statement
.
step
(
function
(
error
,
row
)
{
if
(
error
)
throw
error
;
puts
(
"This is "
+
inspect
(
this
));
assert
.
equal
(
this
.
affectedRows
,
10
,
"Last inserted id should be 10"
);
finished
();
...
...
tests/test-last-inserted-id.js
View file @
435c6f47
...
...
@@ -28,28 +28,6 @@ function createTestTable(db, callback) {
});
}
function
fetchAll
(
db
,
sql
,
callback
)
{
db
.
prepare
(
sql
,
function
(
error
,
statement
)
{
if
(
error
)
throw
error
;
var
rows
=
[];
function
doStep
()
{
statement
.
step
(
function
(
error
,
row
)
{
if
(
error
)
throw
error
;
if
(
row
)
{
rows
.
push
(
row
);
doStep
();
}
else
{
callback
(
rows
);
}
});
}
doStep
();
});
}
var
tests
=
[
{
'insert a row with lastinsertedid'
:
function
(
assert
,
finished
)
{
...
...
@@ -59,13 +37,11 @@ var tests = [
function
createStatement
(
error
,
statement
)
{
if
(
error
)
throw
error
;
statement
.
step
(
function
(
error
,
row
)
{
puts
(
"This is "
+
inspect
(
this
));
assert
.
equal
(
this
.
lastInsertRowID
,
101
,
"Last inserted id should be 1"
);
assert
.
equal
(
this
.
affectedRows
,
1
,
"Last inserted id should be 1"
);
statement
.
reset
();
statement
.
step
(
function
(
error
,
row
)
{
puts
(
"This is "
+
inspect
(
this
));
assert
.
equal
(
this
.
lastInsertRowID
,
102
,
"Last inserted id should be 1"
);
assert
.
equal
(
this
.
affectedRows
,
1
,
"Last inserted id should be 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