upgraded to SQLite version 3.40.0
This commit is contained in:
parent
1b32770139
commit
36cf1c47bd
@ -16,9 +16,9 @@
|
||||
'msvs_settings': {
|
||||
'VCCLCompilerTool': {
|
||||
'AdditionalOptions': [
|
||||
'/std:c++17'
|
||||
]
|
||||
}
|
||||
'/std:c++17',
|
||||
],
|
||||
},
|
||||
},
|
||||
'conditions': [
|
||||
['OS=="linux"', {
|
||||
|
||||
2
deps/download.sh
vendored
2
deps/download.sh
vendored
@ -19,7 +19,7 @@
|
||||
# ===
|
||||
|
||||
YEAR="2022"
|
||||
VERSION="3390400"
|
||||
VERSION="3400000"
|
||||
|
||||
# Defines below are sorted alphabetically
|
||||
DEFINES="
|
||||
|
||||
BIN
deps/sqlite3/sqlite3.c
vendored
BIN
deps/sqlite3/sqlite3.c
vendored
Binary file not shown.
BIN
deps/sqlite3/sqlite3.h
vendored
BIN
deps/sqlite3/sqlite3.h
vendored
Binary file not shown.
BIN
deps/sqlite3/sqlite3ext.h
vendored
BIN
deps/sqlite3/sqlite3ext.h
vendored
Binary file not shown.
@ -42,7 +42,7 @@ If you're using a SQLite3 encryption extension that is a drop-in replacement for
|
||||
|
||||
# Bundled configuration
|
||||
|
||||
By default, this distribution currently uses SQLite3 **version 3.39.4** with the following [compilation options](https://www.sqlite.org/compile.html):
|
||||
By default, this distribution currently uses SQLite3 **version 3.40.0** with the following [compilation options](https://www.sqlite.org/compile.html):
|
||||
|
||||
```
|
||||
HAVE_INT16_T=1
|
||||
|
||||
@ -1965,9 +1965,9 @@ bool Binder::Bind (v8::FunctionCallbackInfo <v8 :: Value> const & info, int argc
|
||||
}
|
||||
return success;
|
||||
}
|
||||
#line 54 "./src/util/binder.lzz"
|
||||
#line 55 "./src/util/binder.lzz"
|
||||
void Binder::Fail (void (* Throw) (char const *), char const * message)
|
||||
#line 54 "./src/util/binder.lzz"
|
||||
#line 55 "./src/util/binder.lzz"
|
||||
{
|
||||
assert(success == true);
|
||||
assert((Throw == NULL) == (message == NULL));
|
||||
@ -1975,16 +1975,16 @@ void Binder::Fail (void (* Throw) (char const *), char const * message)
|
||||
if (Throw) Throw(message);
|
||||
success = false;
|
||||
}
|
||||
#line 62 "./src/util/binder.lzz"
|
||||
#line 63 "./src/util/binder.lzz"
|
||||
int Binder::NextAnonIndex ()
|
||||
#line 62 "./src/util/binder.lzz"
|
||||
#line 63 "./src/util/binder.lzz"
|
||||
{
|
||||
while (sqlite3_bind_parameter_name(handle, ++anon_index) != NULL) {}
|
||||
return anon_index;
|
||||
}
|
||||
#line 68 "./src/util/binder.lzz"
|
||||
#line 69 "./src/util/binder.lzz"
|
||||
void Binder::BindValue (v8::Isolate * isolate, v8::Local <v8::Value> value, int index)
|
||||
#line 68 "./src/util/binder.lzz"
|
||||
#line 69 "./src/util/binder.lzz"
|
||||
{
|
||||
int status = Data::BindValueFromJS(isolate, handle, index, value);
|
||||
if (status != SQLITE_OK) {
|
||||
@ -2003,9 +2003,9 @@ void Binder::BindValue (v8::Isolate * isolate, v8::Local <v8::Value> value, int
|
||||
assert(false);
|
||||
}
|
||||
}
|
||||
#line 89 "./src/util/binder.lzz"
|
||||
#line 90 "./src/util/binder.lzz"
|
||||
int Binder::BindArray (v8::Isolate * isolate, v8::Local <v8::Array> arr)
|
||||
#line 89 "./src/util/binder.lzz"
|
||||
#line 90 "./src/util/binder.lzz"
|
||||
{
|
||||
v8 :: Local < v8 :: Context > ctx = isolate -> GetCurrentContext ( ) ;
|
||||
uint32_t length = arr->Length();
|
||||
@ -2027,9 +2027,9 @@ int Binder::BindArray (v8::Isolate * isolate, v8::Local <v8::Array> arr)
|
||||
}
|
||||
return len;
|
||||
}
|
||||
#line 115 "./src/util/binder.lzz"
|
||||
#line 116 "./src/util/binder.lzz"
|
||||
int Binder::BindObject (v8::Isolate * isolate, v8::Local <v8::Object> obj, Statement * stmt)
|
||||
#line 115 "./src/util/binder.lzz"
|
||||
#line 116 "./src/util/binder.lzz"
|
||||
{
|
||||
v8 :: Local < v8 :: Context > ctx = isolate -> GetCurrentContext ( ) ;
|
||||
BindMap* bind_map = stmt->GetBindMap(isolate);
|
||||
@ -2066,9 +2066,9 @@ int Binder::BindObject (v8::Isolate * isolate, v8::Local <v8::Object> obj, State
|
||||
|
||||
return len;
|
||||
}
|
||||
#line 159 "./src/util/binder.lzz"
|
||||
#line 160 "./src/util/binder.lzz"
|
||||
Binder::Result Binder::BindArgs (v8::FunctionCallbackInfo <v8 :: Value> const & info, int argc, Statement * stmt)
|
||||
#line 159 "./src/util/binder.lzz"
|
||||
#line 160 "./src/util/binder.lzz"
|
||||
{
|
||||
v8 :: Isolate * isolate = info . GetIsolate ( ) ;
|
||||
int count = 0;
|
||||
|
||||
@ -754,25 +754,25 @@ private:
|
||||
#line 32 "./src/util/binder.lzz"
|
||||
bool bound_object;
|
||||
};
|
||||
#line 54 "./src/util/binder.lzz"
|
||||
#line 55 "./src/util/binder.lzz"
|
||||
void Fail (void (* Throw) (char const *), char const * message);
|
||||
#line 62 "./src/util/binder.lzz"
|
||||
#line 63 "./src/util/binder.lzz"
|
||||
int NextAnonIndex ();
|
||||
#line 68 "./src/util/binder.lzz"
|
||||
#line 69 "./src/util/binder.lzz"
|
||||
void BindValue (v8::Isolate * isolate, v8::Local <v8::Value> value, int index);
|
||||
#line 89 "./src/util/binder.lzz"
|
||||
#line 90 "./src/util/binder.lzz"
|
||||
int BindArray (v8::Isolate * isolate, v8::Local <v8::Array> arr);
|
||||
#line 115 "./src/util/binder.lzz"
|
||||
#line 116 "./src/util/binder.lzz"
|
||||
int BindObject (v8::Isolate * isolate, v8::Local <v8::Object> obj, Statement * stmt);
|
||||
#line 159 "./src/util/binder.lzz"
|
||||
#line 160 "./src/util/binder.lzz"
|
||||
Result BindArgs (v8::FunctionCallbackInfo <v8 :: Value> const & info, int argc, Statement * stmt);
|
||||
#line 199 "./src/util/binder.lzz"
|
||||
sqlite3_stmt * handle;
|
||||
#line 200 "./src/util/binder.lzz"
|
||||
int param_count;
|
||||
sqlite3_stmt * handle;
|
||||
#line 201 "./src/util/binder.lzz"
|
||||
int anon_index;
|
||||
int param_count;
|
||||
#line 202 "./src/util/binder.lzz"
|
||||
int anon_index;
|
||||
#line 203 "./src/util/binder.lzz"
|
||||
bool success;
|
||||
};
|
||||
#line 34 "./src/better_sqlite3.lzz"
|
||||
|
||||
@ -51,6 +51,7 @@ private:
|
||||
return proto->StrictEquals(baseProto) || proto->StrictEquals(v8::Null(isolate));
|
||||
}
|
||||
#end
|
||||
|
||||
void Fail(void (*Throw)(const char* _), const char* message) {
|
||||
assert(success == true);
|
||||
assert((Throw == NULL) == (message == NULL));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user