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 {
|
||||
auto it = columns.begin();
|
||||
result.append(dialect_.prepare_identifier(*it++));
|
||||
query_.prototype.append(column{*it});
|
||||
result.append(dialect_.prepare_identifier(*it));
|
||||
query_.prototype.append(column{*it++});
|
||||
for (; it != columns.end(); ++it) {
|
||||
result.append(", ");
|
||||
result.append(dialect_.prepare_identifier(*it));
|
||||
|
|
|
|||
|
|
@ -8,17 +8,17 @@ FetchContent_Declare(
|
|||
|
||||
FetchContent_MakeAvailable(Catch2)
|
||||
|
||||
add_executable(tests builder.cpp
|
||||
session.cpp
|
||||
record.cpp
|
||||
connection_pool.cpp
|
||||
add_executable(tests QueryBuilderTest.cpp
|
||||
SessionTest.cpp
|
||||
RecordTest.cpp
|
||||
ConnectionPoolTest.cpp
|
||||
query.cpp
|
||||
backend_provider.cpp
|
||||
connection.cpp
|
||||
BackendProviderTest.cpp
|
||||
ConnectionTest.cpp
|
||||
models/product.hpp
|
||||
column_generator.cpp
|
||||
column_name_generator.cpp
|
||||
value_generator.cpp
|
||||
ColumnGeneratorTest.cpp
|
||||
ColumnNameGeneratorTest.cpp
|
||||
ValueGeneratorTest.cpp
|
||||
models/category.hpp
|
||||
models/supplier.hpp
|
||||
models/airplane.hpp
|
||||
|
|
|
|||
Loading…
Reference in New Issue