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
001dcf80
Commit
001dcf80
authored
Mar 30, 2011
by
Konstantin Käfer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/carter-thaxton/node-sqlite3
into carter-thaxton-master
parents
b8f718c7
d74f2e23
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletions
+4
-1
database.h
src/database.h
+3
-0
statement.h
src/statement.h
+1
-1
No files found.
src/database.h
View file @
001dcf80
...
@@ -89,6 +89,9 @@ public:
...
@@ -89,6 +89,9 @@ public:
std
::
string
table
;
std
::
string
table
;
sqlite3_int64
rowid
;
sqlite3_int64
rowid
;
};
};
bool
IsOpen
()
{
return
open
;
}
bool
IsLocked
()
{
return
locked
;
}
typedef
Async
<
std
::
string
,
Database
>
AsyncTrace
;
typedef
Async
<
std
::
string
,
Database
>
AsyncTrace
;
typedef
Async
<
ProfileInfo
,
Database
>
AsyncProfile
;
typedef
Async
<
ProfileInfo
,
Database
>
AsyncProfile
;
...
...
src/statement.h
View file @
001dcf80
...
@@ -134,7 +134,7 @@ public:
...
@@ -134,7 +134,7 @@ public:
}
}
virtual
~
PrepareBaton
()
{
virtual
~
PrepareBaton
()
{
stmt
->
Unref
();
stmt
->
Unref
();
if
(
!
db
->
open
&&
db
->
locked
)
{
if
(
!
db
->
IsOpen
()
&&
db
->
IsLocked
()
)
{
// The database handle was closed before the statement could be
// The database handle was closed before the statement could be
// prepared.
// prepared.
stmt
->
Finalize
();
stmt
->
Finalize
();
...
...
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