Skip to content

Commit

Permalink
support older mysql version
Browse files Browse the repository at this point in the history
  • Loading branch information
RichardAH committed Feb 15, 2025
1 parent acc4ee6 commit 610848e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/ripple/nodestore/backend/MySQLFactory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -537,7 +537,13 @@ class MySQLBackend : public Backend
MYSQL_BIND bindResult;
std::memset(&bindResult, 0, sizeof(bindResult));
uint64_t length = 0;
bool is_null = false;

#if MYSQL_VERSION_ID < 80000
char
#else
bool
#endif
is_null = 0;
bindResult.buffer_type = MYSQL_TYPE_BLOB;
bindResult.length = &length;
bindResult.is_null = &is_null;
Expand Down

0 comments on commit 610848e

Please sign in to comment.