Skip to content

Commit 277ece1

Browse files
committed
Merge branch 'odbc-3.1'
2 parents 1524260 + 9801337 commit 277ece1

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

test/connstring.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved.
3-
2016, 2025 MariaDB Corporation AB
3+
2016, 2026 MariaDB Corporation plc
44
55
The MySQL Connector/ODBC is licensed under the terms of the GPLv2
66
<http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most
@@ -258,13 +258,6 @@ ODBC_TEST(all_other_fields_test)
258258
char connstr4dsn[512], *opt_value, IntValue[20], *BoolValue= "1";
259259
int i= 5; /* After Options. Assuming that fields before Options are tested in other test(s) */
260260

261-
if (Travis)
262-
{
263-
/* As already said - ini cache is buggy in UnixODBC, and it fails with UnixODBC version we have availabe in Travis tests.
264-
It's possible to change the test to pass in similar way as we did in some other tests - by either writing and reading
265-
the (new) DSN only once, or by creating new DSN for each keyword. */
266-
skip("Skipping with test in Travis");
267-
}
268261
if (!MADB_DSN_Exists(DsnName))
269262
{
270263
if (GithubActionsOnMacos)
@@ -332,7 +325,7 @@ ODBC_TEST(all_other_fields_test)
332325
case DSN_TYPE_OPTION:
333326
/* IsNamedPipe is switched off when TcpIp is switched on(since TcpIp goes after NamedPipe in the DsnKeys.
334327
Do detect IsNamedPipe, comparing its offset in the MADB_Dsn with offset recorded in the DsnKeys */
335-
is_num(*(my_bool*)((char*)Dsn + DsnKeys[i].DsnOffset), DsnKeys[i].DsnOffset == (size_t)&((MADB_Dsn*)NULL)->IsNamedPipe ? 0 : 1);
328+
is_num(*(my_bool*)((char*)Dsn + DsnKeys[i].DsnOffset), DsnKeys[i].DsnOffset == (unsigned int)((char*)&Dsn->IsNamedPipe - (char*)Dsn) ? 0 : 1);
336329
case DSN_TYPE_CBOXGROUP:
337330
break;
338331
}

0 commit comments

Comments
 (0)