Skip to content

Commit

Permalink
odbcBackend: fix type identifier, link elektra-kdb
Browse files Browse the repository at this point in the history
- fix errors reported from macOS CI jobs
  • Loading branch information
flo91 committed Jun 24, 2023
1 parent e9aea4a commit 8c3b217
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/backend_odbc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ add_plugin (
backend_odbc_set.h
backend_odbc_set.c
INCLUDE_DIRECTORIES ${ODBC_INCLUDE_DIRS}
LINK_ELEKTRA elektra-ease
LINK_ELEKTRA elektra-ease elektra-kdb
LINK_LIBRARIES ${ODBC_LIBRARIES}
ADD_TEST COMPONENT libelektra${SO_VERSION})
4 changes: 2 additions & 2 deletions src/plugins/backend_odbc/backend_odbc_set.c
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ static bool bindStringsToStatementV (SQLHSTMT sqlStmt, ssize_t startPos, Key * e
if (numParams > USHRT_MAX)
{
ELEKTRA_SET_INTERFACE_ERRORF (errorKey,
"The maximum number of parameter values to bind is %hu, but you specified a number of %u",
"The maximum number of parameter values to bind is %d, but you specified a number of %u",
USHRT_MAX, numParams);
SQLFreeHandle (SQL_HANDLE_STMT, sqlStmt);
return false;
Expand Down Expand Up @@ -476,7 +476,7 @@ static bool bindKeyNamesToStatement (SQLHSTMT sqlStmt, const KeySet * keysToBind
if ((endPosKeySet - startPosKeySet) >= USHRT_MAX)
{
ELEKTRA_SET_INTERFACE_ERRORF (parentKey,
"The maximum number of parameter values to bind is %hu, but you specified a number of %zd",
"The maximum number of parameter values to bind is %d, but you specified a number of %zd",
USHRT_MAX, ksGetSize (keysToBind));
SQLFreeHandle (SQL_HANDLE_STMT, sqlStmt);
return false;
Expand Down

0 comments on commit 8c3b217

Please sign in to comment.