Skip to content

Commit

Permalink
Merge branch '3.2' into 3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
9EOR9 committed Mar 1, 2022
2 parents a9dcf92 + bc94588 commit 2b6a8c4
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SET(CC_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})

SET(CPACK_PACKAGE_VERSION_MAJOR 3)
SET(CPACK_PACKAGE_VERSION_MINOR 3)
SET(CPACK_PACKAGE_VERSION_PATCH 0)
SET(CPACK_PACKAGE_VERSION_PATCH 1)
SET(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION_MAJOR}.${CPACK_PACKAGE_VERSION_MINOR}.${CPACK_PACKAGE_VERSION_PATCH}")
MATH(EXPR MARIADB_PACKAGE_VERSION_ID "${CPACK_PACKAGE_VERSION_MAJOR} * 10000 +
${CPACK_PACKAGE_VERSION_MINOR} * 100 +
Expand Down Expand Up @@ -170,7 +170,7 @@ IF(MAJOR_VERSION)
ELSE()
SET(MARIADB_CLIENT_VERSION_MAJOR "10")
SET(MARIADB_CLIENT_VERSION_MINOR "6")
SET(MARIADB_CLIENT_VERSION_PATCH "6")
SET(MARIADB_CLIENT_VERSION_PATCH "8")
SET(MARIADB_CLIENT_VERSION_EXTRA "")
ENDIF()

Expand Down
9 changes: 7 additions & 2 deletions unittest/libmariadb/my_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,12 @@ if (IS_SKYSQL(hostname)) \
#define SKIP_NOTLS
#endif

#define IS_MAXSCALE() (getenv("srv")!=NULL && (strcmp(getenv("srv"), "maxscale") == 0 || strcmp(getenv("srv"), "skysql-ha") == 0))
MYSQL *mysql_default = NULL; /* default connection */

#define IS_MAXSCALE()\
((mysql_default && strstr(mysql_get_server_info(mysql_default), "maxScale")) ||\
(getenv("srv")!=NULL && (strcmp(getenv("srv"), "maxscale") == 0 ||\
strcmp(getenv("srv"), "skysql-ha") == 0)))
#define SKIP_MAXSCALE \
if (IS_MAXSCALE()) \
{ \
Expand Down Expand Up @@ -644,7 +649,7 @@ MYSQL *my_test_connect(MYSQL *mysql,

void run_tests(struct my_tests_st *test) {
int i, rc, total=0;
MYSQL *mysql, *mysql_default= NULL; /* default connection */
MYSQL *mysql;

while (test[total].function)
total++;
Expand Down
2 changes: 2 additions & 0 deletions unittest/libmariadb/ps_bugs.c
Original file line number Diff line number Diff line change
Expand Up @@ -5425,6 +5425,8 @@ static int test_mdev19838(MYSQL *mysql)
char charvalue[] = "012345678901234567890123456789012345";
MYSQL_STMT *stmt;

SKIP_MAXSCALE;

rc = mysql_query(mysql, "CREATE temporary TABLE mdev19838("
"f1 char(36),"
"f2 char(36),"
Expand Down

0 comments on commit 2b6a8c4

Please sign in to comment.