Skip to content

Commit

Permalink
Merge branch 'devel' into 2208-merge-dnssd
Browse files Browse the repository at this point in the history
  • Loading branch information
aleks-f committed Mar 29, 2024
2 parents ff9cb67 + 78c9dd1 commit b80648f
Show file tree
Hide file tree
Showing 12 changed files with 527 additions and 100 deletions.
10 changes: 5 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ set(RELEASE_NAME "Unstable-trunk")
# top of the build tree rather than in hard-to-find leaf
# directories. This simplifies manual testing and the use of the build
# tree rather than installed Boost libraries.
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib CACHE PATH "Library output")
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib CACHE PATH "Archive output")
# Windows DLLs are "runtime" for CMake. Output them to "bin" like the Visual Studio projects do.
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin CACHE PATH "Runtime output")

# Reset output dirs for multi-config builds
foreach(OUTPUTCONFIG ${CMAKE_CONFIGURATION_TYPES})
Expand Down Expand Up @@ -435,8 +435,8 @@ if(EXISTS ${PROJECT_SOURCE_DIR}/Data/MySQL AND ENABLE_DATA_MYSQL)
list(APPEND Poco_COMPONENTS "Data/MySQL")
endif()

if(EXISTS ${PROJECT_SOURCE_DIR}/Data/PostgresSQL AND ENABLE_DATA_POSTGRESQL)
list(APPEND Poco_COMPONENTS "Data/PostgresSQL")
if(EXISTS ${PROJECT_SOURCE_DIR}/Data/PostgreSQL AND ENABLE_DATA_POSTGRESQL)
list(APPEND Poco_COMPONENTS "Data/PostgreSQL")
endif()

if(EXISTS ${PROJECT_SOURCE_DIR}/ActiveRecord AND ENABLE_ACTIVERECORD)
Expand Down
5 changes: 5 additions & 0 deletions Data/MySQL/src/StatementExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,13 @@ void StatementExecutor::bindParams(MYSQL_BIND* params, std::size_t count)

if (count == 0) return;

#if LIBMYSQL_VERSION_ID >= 80300
if (mysql_stmt_bind_named_param(_pHandle, params, count, nullptr) != 0)
throw StatementException("mysql_stmt_bind_named_param() error ", _pHandle, _query);
#else
if (mysql_stmt_bind_param(_pHandle, params) != 0)
throw StatementException("mysql_stmt_bind_param() error ", _pHandle, _query);
#endif
}


Expand Down
5 changes: 5 additions & 0 deletions Data/MySQL/testsuite/src/SQLExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,12 @@ void SQLExecutor::bareboneMySQLTest(const char* host, const char* user, const ch
bind_param[4].buffer = &fifth;
bind_param[4].buffer_type = MYSQL_TYPE_FLOAT;

#if LIBMYSQL_VERSION_ID >= 80300
rc = mysql_stmt_bind_named_param(hstmt, bind_param, 5, nullptr);
#else
rc = mysql_stmt_bind_param(hstmt, bind_param);
#endif

assertTrue (rc == 0);

rc = mysql_stmt_execute(hstmt);
Expand Down
Loading

0 comments on commit b80648f

Please sign in to comment.