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
29debf3a
Unverified
Commit
29debf3a
authored
Jul 03, 2020
by
mtgto
Committed by
GitHub
Jul 02, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug: bad comparison of c string (#1347)
parent
be719256
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
package.json
package.json
+1
-1
statement.cc
src/statement.cc
+3
-3
No files found.
package.json
View file @
29debf3a
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
},
},
"peerDependenciesMeta"
:
{
"peerDependenciesMeta"
:
{
"node-gyp"
:
{
"node-gyp"
:
{
"optional"
:
true
"optional"
:
true
}
}
},
},
"optionalDependencies"
:
{
"optionalDependencies"
:
{
...
...
src/statement.cc
View file @
29debf3a
...
@@ -31,10 +31,10 @@ Napi::Object Statement::Init(Napi::Env env, Napi::Object exports) {
...
@@ -31,10 +31,10 @@ Napi::Object Statement::Init(Napi::Env env, Napi::Object exports) {
}
}
// A Napi InstanceOf for Javascript Objects "Date" and "RegExp"
// A Napi InstanceOf for Javascript Objects "Date" and "RegExp"
bool
OtherInstanceOf
(
Napi
::
Object
source
,
char
*
object_type
)
{
bool
OtherInstanceOf
(
Napi
::
Object
source
,
c
onst
c
har
*
object_type
)
{
if
(
object_type
==
"Date"
)
{
if
(
strncmp
(
object_type
,
"Date"
,
4
)
==
0
)
{
return
source
.
InstanceOf
(
source
.
Env
().
Global
().
Get
(
"Date"
).
As
<
Function
>
());
return
source
.
InstanceOf
(
source
.
Env
().
Global
().
Get
(
"Date"
).
As
<
Function
>
());
}
else
if
(
object_type
==
"RegExp"
)
{
}
else
if
(
strncmp
(
object_type
,
"RegExp"
,
6
)
==
0
)
{
return
source
.
InstanceOf
(
source
.
Env
().
Global
().
Get
(
"RegExp"
).
As
<
Function
>
());
return
source
.
InstanceOf
(
source
.
Env
().
Global
().
Get
(
"RegExp"
).
As
<
Function
>
());
}
}
...
...
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