Skip to content

Commit cca4e1b

Browse files
committed
config: update default supported 4.x ver to 4.4
BREAKING CHANGE: Dropped default support for version 4.0. Now default 4.x version is 4.4.
1 parent 419e591 commit cca4e1b

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

lib/src/client_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ const struct neo4j_plan_table_colors *neo4j_plan_table_ansi_colors =
7676
&_neo4j_plan_table_ansi_colors;
7777

7878
static version_spec_t neo4j_supported_versions[4] = {
79-
{5, 0, 0}, {4, 0, 0}, {3, 0, 0}, {1, 0, 0}
79+
{5, 0, 0}, {4, 4, 0}, {3, 0, 0}, {1, 0, 0}
8080
};
8181

82-
static const char neo4j_supported_versions_string[] = "5.0,4.0,3.0,1.0";
82+
static const char neo4j_supported_versions_string[] = "5.0,4.4,3.0,1.0";
8383

8484
static ssize_t default_password_callback(void *userdata, char *buf, size_t n);
8585

lib/test/check_config.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ START_TEST (test_neo4j_config_set_supported_versions)
3333
neo4j_config_t *config = neo4j_new_config();
3434
ck_assert(config->supported_versions != NULL);
3535
ck_assert_str_eq
36-
(neo4j_config_get_supported_versions(config), "5.0 4.0 3.0 1.0 "); // default
36+
(neo4j_config_get_supported_versions(config), "5.0 4.4 3.0 1.0 "); // default
3737
ck_assert_int_eq
3838
(neo4j_config_set_supported_versions(config, "5.4"),0);
3939
ck_assert_int_eq
@@ -73,7 +73,7 @@ START_TEST (test_neo4j_config_set_supported_versions)
7373
ck_assert_int_eq
7474
(neo4j_config_set_supported_versions(config, "5.4,4.3-4,3,crap"),-1);
7575
ck_assert_str_eq
76-
(neo4j_config_get_supported_versions(config), "5.0 4.0 3.0 1.0 "); // default
76+
(neo4j_config_get_supported_versions(config), "5.0 4.4 3.0 1.0 "); // default
7777

7878

7979

lib/test/check_connection.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ struct received_response
3030

3131

3232
#define EXPECTED_VERSIONS_DEFAULT \
33-
{ htonl(0x000005), htonl(0x000004), htonl(0x000003), htonl(0x000001) }
33+
{ htonl(0x000005), htonl(0x000404), htonl(0x000003), htonl(0x000001) }
3434

3535
#define STUB_FAILURE_CODE -99
3636

0 commit comments

Comments
 (0)