renamed blob to blob_type_t
This commit is contained in:
@@ -60,7 +60,7 @@ TEST_CASE_METHOD(QueryFixture, "Insert and select basic datatypes", "[query][dat
|
||||
"gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.";
|
||||
// matador::date date_val(15, 3, 2015);
|
||||
// auto time_val = matador::time(2015, 3, 15, 13, 56, 23, 123);
|
||||
matador::utils::blob blob_val {1,2,3,4,5,6,7,8};
|
||||
matador::utils::blob_type_t blob_val {1,2,3,4,5,6,7,8};
|
||||
|
||||
types t {
|
||||
1,
|
||||
|
||||
@@ -88,7 +88,7 @@ TEST_CASE_METHOD(QueryFixture, "Test all data types for record", "[query][record
|
||||
std::string varchar{"good day"};
|
||||
date_type_t md{2025, 11, 27};
|
||||
time_type_t mt{12, 34, 56};
|
||||
blob bin{0x01,0x02,0x03,0x04};
|
||||
blob_type_t bin{0x01,0x02,0x03,0x04};
|
||||
|
||||
res = query::insert()
|
||||
.into("types", cols)
|
||||
@@ -122,7 +122,7 @@ TEST_CASE_METHOD(QueryFixture, "Test all data types for record", "[query][record
|
||||
REQUIRE(md == row.at<date_type_t>("val_date"));
|
||||
const auto mtres = row.at<time_type_t>("val_time");
|
||||
REQUIRE(mt == row.at<time_type_t>("val_time"));
|
||||
REQUIRE(bin == row.at<blob>("val_blob"));
|
||||
REQUIRE(bin == row.at<blob_type_t>("val_blob"));
|
||||
}
|
||||
|
||||
TEST_CASE_METHOD(QueryFixture, "Create and drop table statement", "[query][record]")
|
||||
|
||||
@@ -84,7 +84,7 @@ TEST_CASE_METHOD(QueryFixture, "Test insert statement", "[query][statement][inse
|
||||
REQUIRE((*row)->id == 1);
|
||||
REQUIRE((*row)->name == "george");
|
||||
REQUIRE((*row)->age == 45);
|
||||
REQUIRE((*row)->image == matador::utils::blob{1,2,3,4});
|
||||
REQUIRE((*row)->image == matador::utils::blob_type_t{1,2,3,4});
|
||||
}
|
||||
|
||||
TEST_CASE_METHOD(QueryFixture, "Test update statement", "[query][statement][update]") {
|
||||
@@ -129,7 +129,7 @@ TEST_CASE_METHOD(QueryFixture, "Test update statement", "[query][statement][upda
|
||||
REQUIRE((*row)->id == 1);
|
||||
REQUIRE((*row)->name == "george");
|
||||
REQUIRE((*row)->age == 45);
|
||||
REQUIRE((*row)->image == blob{1,2,3,4});
|
||||
REQUIRE((*row)->image == blob_type_t{1,2,3,4});
|
||||
|
||||
george.age = 36;
|
||||
george.image = {5,6,7,8};
|
||||
@@ -154,7 +154,7 @@ TEST_CASE_METHOD(QueryFixture, "Test update statement", "[query][statement][upda
|
||||
REQUIRE((*row)->id == 1);
|
||||
REQUIRE((*row)->name == "george");
|
||||
REQUIRE((*row)->age == 36);
|
||||
REQUIRE((*row)->image == blob{5,6,7,8});
|
||||
REQUIRE((*row)->image == blob_type_t{5,6,7,8});
|
||||
}
|
||||
|
||||
TEST_CASE_METHOD(QueryFixture, "Test delete statement", "[query][statement][delete]") {
|
||||
|
||||
Reference in New Issue
Block a user