Compare commits
No commits in common. "44adc81ce147bea47ada56bb070267ea898cb51f" and "72f9d28d0d97312ecc906daaf688e894a1985c07" have entirely different histories.
44adc81ce1
...
72f9d28d0d
|
|
@ -118,8 +118,8 @@ query_builder &query_builder::select(const std::vector<column> &columns)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
auto it = columns.begin();
|
auto it = columns.begin();
|
||||||
result.append(dialect_.prepare_identifier(*it));
|
result.append(dialect_.prepare_identifier(*it++));
|
||||||
query_.prototype.append(column{*it++});
|
query_.prototype.append(column{*it});
|
||||||
for (; it != columns.end(); ++it) {
|
for (; it != columns.end(); ++it) {
|
||||||
result.append(", ");
|
result.append(", ");
|
||||||
result.append(dialect_.prepare_identifier(*it));
|
result.append(dialect_.prepare_identifier(*it));
|
||||||
|
|
|
||||||
|
|
@ -8,17 +8,17 @@ FetchContent_Declare(
|
||||||
|
|
||||||
FetchContent_MakeAvailable(Catch2)
|
FetchContent_MakeAvailable(Catch2)
|
||||||
|
|
||||||
add_executable(tests QueryBuilderTest.cpp
|
add_executable(tests builder.cpp
|
||||||
SessionTest.cpp
|
session.cpp
|
||||||
RecordTest.cpp
|
record.cpp
|
||||||
ConnectionPoolTest.cpp
|
connection_pool.cpp
|
||||||
query.cpp
|
query.cpp
|
||||||
BackendProviderTest.cpp
|
backend_provider.cpp
|
||||||
ConnectionTest.cpp
|
connection.cpp
|
||||||
models/product.hpp
|
models/product.hpp
|
||||||
ColumnGeneratorTest.cpp
|
column_generator.cpp
|
||||||
ColumnNameGeneratorTest.cpp
|
column_name_generator.cpp
|
||||||
ValueGeneratorTest.cpp
|
value_generator.cpp
|
||||||
models/category.hpp
|
models/category.hpp
|
||||||
models/supplier.hpp
|
models/supplier.hpp
|
||||||
models/airplane.hpp
|
models/airplane.hpp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue