Skip to content

Commit bf3c9a8

Browse files
committed
Corrected AST iteration unit test for named parameter
1 parent 87101de commit bf3c9a8

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

dev/ast_iterator.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#include "ast/match.h"
2828
#include "ast/cast.h"
2929
#include "ast/limit.h"
30+
#include "ast/labeled_bindable.h"
3031

3132
namespace sqlite_orm {
3233

include/sqlite_orm/sqlite_orm.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15851,6 +15851,8 @@ SQLITE_ORM_EXPORT namespace sqlite_orm {
1585115851

1585215852
// #include "ast/limit.h"
1585315853

15854+
// #include "ast/labeled_bindable.h"
15855+
1585415856
namespace sqlite_orm {
1585515857

1585615858
namespace internal {

tests/ast_iterator_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ TEST_CASE("ast_iterator") {
6565
SECTION("named") {
6666
auto bindable = "@p"_param.create<int>();
6767
auto node = select(bindable);
68-
expected.push_back(typeid(int));
68+
expected.push_back(typeid(bindable));
6969
iterate_ast(node, lambda);
7070
}
7171
#endif

0 commit comments

Comments
 (0)