File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 9
9
#include < algorithm> // std::find_if, std::ranges::find
10
10
11
11
#include " ../dbstat.h"
12
+ #include " ../type_traits.h"
12
13
#include " ../util.h"
13
14
#include " ../serializing_util.h"
14
15
#include " ../storage.h"
@@ -20,7 +21,7 @@ namespace sqlite_orm {
20
21
template <class Table , satisfies<is_table, Table>>
21
22
sync_schema_result storage_t <DBO...>::sync_table(const Table& table, sqlite3* db, bool preserve) {
22
23
#ifdef SQLITE_ENABLE_DBSTAT_VTAB
23
- if (std::is_same<Table, dbstat>::value) {
24
+ if (std::is_same<object_type_t < Table> , dbstat>::value) {
24
25
return sync_schema_result::already_in_sync;
25
26
}
26
27
#endif // SQLITE_ENABLE_DBSTAT_VTAB
Original file line number Diff line number Diff line change @@ -137,10 +137,6 @@ using std::nullptr_t;
137
137
#define SQLITE_ORM_BROKEN_NONTEMPLATE_CONCEPTS
138
138
#endif
139
139
140
- #if SQLITE_ORM_HAS_INCLUDE(<version>)
141
- #include <version>
142
- #endif
143
-
144
140
#ifdef SQLITE_ORM_INLINE_VARIABLES_SUPPORTED
145
141
#define SQLITE_ORM_INLINE_VAR inline
146
142
#else
@@ -19364,6 +19360,8 @@ namespace sqlite_orm {
19364
19360
19365
19361
// #include "../dbstat.h"
19366
19362
19363
+ // #include "../type_traits.h"
19364
+
19367
19365
// #include "../util.h"
19368
19366
19369
19367
// #include "../serializing_util.h"
@@ -19377,7 +19375,7 @@ namespace sqlite_orm {
19377
19375
template<class Table, satisfies<is_table, Table>>
19378
19376
sync_schema_result storage_t<DBO...>::sync_table(const Table& table, sqlite3* db, bool preserve) {
19379
19377
#ifdef SQLITE_ENABLE_DBSTAT_VTAB
19380
- if(std::is_same<Table, dbstat>::value) {
19378
+ if(std::is_same<object_type_t< Table> , dbstat>::value) {
19381
19379
return sync_schema_result::already_in_sync;
19382
19380
}
19383
19381
#endif // SQLITE_ENABLE_DBSTAT_VTAB
You can’t perform that action at this time.
0 commit comments