Skip to content

Commit 132a5f7

Browse files
committed
fix: build fixes
1 parent f734b7b commit 132a5f7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ cmake_minimum_required(VERSION 3.5)
22

33
# Set extension name here
44
set(TARGET_NAME adbc_scanner)
5+
set(CMAKE_CXX_STANDARD 20)
6+
set(CMAKE_CXX_STANDARD_REQUIRED ON)
7+
set(CMAKE_CXX_EXTENSIONS OFF)
58

69
find_package(tomlplusplus REQUIRED)
710
find_package(AdbcDriverManager CONFIG REQUIRED)

src/adbc_scan.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ struct AdbcExecuteBindData : public FunctionData {
505505
copy->params = params;
506506
copy->param_types = param_types;
507507
copy->has_params = has_params;
508-
return copy;
508+
return std::move(copy);
509509
}
510510

511511
bool Equals(const FunctionData &other_p) const override {
@@ -518,7 +518,7 @@ struct AdbcExecuteBindData : public FunctionData {
518518
static unique_ptr<FunctionData> AdbcExecuteBind(ClientContext &context, ScalarFunction &bound_function,
519519
vector<unique_ptr<Expression>> &arguments) {
520520
auto bind_data = make_uniq<AdbcExecuteBindData>();
521-
return bind_data;
521+
return std::move(bind_data);
522522
}
523523

524524
// Helper to execute a single DDL/DML statement and return rows affected

0 commit comments

Comments
 (0)