Skip to content

Commit ea04817

Browse files
committed
Merge branch 'upstream/dev' into feature/modules-support
2 parents 1a3d518 + 8c15e4b commit ea04817

File tree

7 files changed

+343
-85
lines changed

7 files changed

+343
-85
lines changed

appveyor.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ for:
113113
install:
114114
- |-
115115
cd C:\Tools\vcpkg
116-
git fetch --tags && git checkout 2024.06.15
116+
git fetch --tags && git checkout 2024.07.12
117117
cd %APPVEYOR_BUILD_FOLDER%
118118
C:\Tools\vcpkg\bootstrap-vcpkg.bat -disableMetrics
119119
C:\Tools\vcpkg\vcpkg integrate install
@@ -146,7 +146,7 @@ for:
146146
install:
147147
- |-
148148
pushd $HOME/vcpkg
149-
git fetch --tags && git checkout 2024.06.15
149+
git fetch --tags && git checkout 2024.07.12
150150
popd
151151
$HOME/vcpkg/bootstrap-vcpkg.sh -disableMetrics
152152
$HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets
@@ -174,7 +174,7 @@ for:
174174
# using custom vcpkg triplets for building and linking dynamic dependent libraries
175175
install:
176176
- |-
177-
git clone --depth 1 --branch 2024.06.15 https://github.com/microsoft/vcpkg.git $HOME/vcpkg
177+
git clone --depth 1 --branch 2024.07.12 https://github.com/microsoft/vcpkg.git $HOME/vcpkg
178178
$HOME/vcpkg/bootstrap-vcpkg.sh -disableMetrics
179179
$HOME/vcpkg/vcpkg integrate install --overlay-triplets=vcpkg/triplets
180180
vcpkg install sqlite3[core,dbstat,math,json1,fts5,soundex] catch2 --overlay-triplets=vcpkg/triplets

dev/pragma.h

+7-7
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ namespace sqlite_orm {
151151
auto& res = *(std::vector<sqlite_orm::table_xinfo>*)data;
152152
if(argc) {
153153
auto index = 0;
154-
auto cid = std::atoi(argv[index++]);
154+
auto cid = atoi(argv[index++]);
155155
std::string name = argv[index++];
156156
std::string type = argv[index++];
157-
bool notnull = !!std::atoi(argv[index++]);
157+
bool notnull = !!atoi(argv[index++]);
158158
std::string dflt_value = argv[index] ? argv[index] : "";
159159
++index;
160-
auto pk = std::atoi(argv[index++]);
161-
auto hidden = std::atoi(argv[index++]);
160+
auto pk = atoi(argv[index++]);
161+
auto hidden = atoi(argv[index++]);
162162
res.emplace_back(cid,
163163
std::move(name),
164164
std::move(type),
@@ -188,13 +188,13 @@ namespace sqlite_orm {
188188
auto& res = *(std::vector<sqlite_orm::table_info>*)data;
189189
if(argc) {
190190
auto index = 0;
191-
auto cid = std::atoi(argv[index++]);
191+
auto cid = atoi(argv[index++]);
192192
std::string name = argv[index++];
193193
std::string type = argv[index++];
194-
bool notnull = !!std::atoi(argv[index++]);
194+
bool notnull = !!atoi(argv[index++]);
195195
std::string dflt_value = argv[index] ? argv[index] : "";
196196
++index;
197-
auto pk = std::atoi(argv[index++]);
197+
auto pk = atoi(argv[index++]);
198198
res.emplace_back(cid, std::move(name), std::move(type), notnull, std::move(dflt_value), pk);
199199
}
200200
return 0;

dev/statement_binder.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@
66
#include <memory> // std::default_delete
77
#include <string> // std::string, std::wstring
88
#include <vector> // std::vector
9-
#include <cstring> // ::strncpy, ::strlen
9+
#include <cstring> // strncpy, strlen
1010
#include "functional/cxx_string_view.h"
1111
#ifndef SQLITE_ORM_STRING_VIEW_SUPPORTED
12-
#include <cwchar> // ::wcsncpy, ::wcslen
12+
#include <cwchar> // wcsncpy, wcslen
1313
#endif
1414
#ifndef SQLITE_ORM_OMITS_CODECVT
1515
#include <locale> // std::wstring_convert

dev/storage_base.h

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
#include <sqlite3.h>
44
#ifndef _IMPORT_STD_MODULE
5+
#include <cstdlib> // atoi
56
#include <memory> // std::allocator
67
#include <functional> // std::function, std::bind, std::bind_front
78
#include <string> // std::string
@@ -171,7 +172,7 @@ namespace sqlite_orm {
171172
[](void* data, int argc, char** argv, char** /*azColName*/) -> int {
172173
auto& res = *(bool*)data;
173174
if(argc) {
174-
res = !!std::atoi(argv[0]);
175+
res = !!atoi(argv[0]);
175176
}
176177
return 0;
177178
},

0 commit comments

Comments
 (0)