Compare commits
2 Commits
72f9d28d0d
...
44adc81ce1
| Author | SHA1 | Date |
|---|---|---|
|
|
44adc81ce1 | |
|
|
1efc2bdc96 |
|
|
@ -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 builder.cpp
|
add_executable(tests QueryBuilderTest.cpp
|
||||||
session.cpp
|
SessionTest.cpp
|
||||||
record.cpp
|
RecordTest.cpp
|
||||||
connection_pool.cpp
|
ConnectionPoolTest.cpp
|
||||||
query.cpp
|
query.cpp
|
||||||
backend_provider.cpp
|
BackendProviderTest.cpp
|
||||||
connection.cpp
|
ConnectionTest.cpp
|
||||||
models/product.hpp
|
models/product.hpp
|
||||||
column_generator.cpp
|
ColumnGeneratorTest.cpp
|
||||||
column_name_generator.cpp
|
ColumnNameGeneratorTest.cpp
|
||||||
value_generator.cpp
|
ValueGeneratorTest.cpp
|
||||||
models/category.hpp
|
models/category.hpp
|
||||||
models/supplier.hpp
|
models/supplier.hpp
|
||||||
models/airplane.hpp
|
models/airplane.hpp
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue