@@ -43,6 +43,7 @@ class IntsRow : public oatpp::DTO {
4343 DTO_FIELD (Int16, f_int16);
4444 DTO_FIELD (Int32, f_int32);
4545 DTO_FIELD (Int64, f_int64);
46+ DTO_FIELD (Boolean, f_bool);
4647
4748};
4849
@@ -70,12 +71,13 @@ class MyClient : public oatpp::orm::DbClient {
7071
7172 QUERY (insertIntValues,
7273 " INSERT INTO test_ints "
73- " (f_int16, f_int32, f_int64) "
74+ " (f_int16, f_int32, f_int64, f_bool ) "
7475 " VALUES "
75- " (:f_int16, :f_int32, :f_int64)" ,
76+ " (:f_int16, :f_int32, :f_int64, :f_bool )" ,
7677 PARAM (Int16, f_int16),
7778 PARAM(Int32, f_int32),
78- PARAM(Int64, f_int64))
79+ PARAM(Int64, f_int64),
80+ PARAM(Boolean, f_bool))
7981
8082 QUERY(selectAllInts, " SELECT * FROM test_ints" )
8183
@@ -98,20 +100,24 @@ void IntTest::onRun() {
98100 auto connection = client.getConnection ();
99101
100102 client.insertIntValues (nullptr ,
103+ nullptr ,
101104 nullptr ,
102105 nullptr , connection);
103106
104107 client.insertIntValues (-1 ,
105108 -1 ,
106- -1 , connection);
109+ -1 ,
110+ false , connection);
107111
108112 client.insertIntValues (std::numeric_limits<v_int16>::min (),
109113 std::numeric_limits<v_int32>::min (),
110- std::numeric_limits<v_int64>::min (), connection);
114+ std::numeric_limits<v_int64>::min (),
115+ true , connection);
111116
112117 client.insertIntValues (std::numeric_limits<v_int16>::max (),
113118 std::numeric_limits<v_int32>::max (),
114- std::numeric_limits<v_int64>::max (), connection);
119+ std::numeric_limits<v_int64>::max (),
120+ true , connection);
115121
116122 }
117123
0 commit comments