|
1 | 1 | /* |
2 | 2 | Copyright (c) 2001, 2012, Oracle and/or its affiliates. All rights reserved. |
3 | | - 2016, 2025 MariaDB Corporation AB |
| 3 | + 2016, 2026 MariaDB Corporation plc |
4 | 4 |
|
5 | 5 | The MySQL Connector/ODBC is licensed under the terms of the GPLv2 |
6 | 6 | <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most |
@@ -258,13 +258,6 @@ ODBC_TEST(all_other_fields_test) |
258 | 258 | char connstr4dsn[512], *opt_value, IntValue[20], *BoolValue= "1"; |
259 | 259 | int i= 5; /* After Options. Assuming that fields before Options are tested in other test(s) */ |
260 | 260 |
|
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 | | - } |
268 | 261 | if (!MADB_DSN_Exists(DsnName)) |
269 | 262 | { |
270 | 263 | if (GithubActionsOnMacos) |
@@ -332,7 +325,7 @@ ODBC_TEST(all_other_fields_test) |
332 | 325 | case DSN_TYPE_OPTION: |
333 | 326 | /* IsNamedPipe is switched off when TcpIp is switched on(since TcpIp goes after NamedPipe in the DsnKeys. |
334 | 327 | 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); |
336 | 329 | case DSN_TYPE_CBOXGROUP: |
337 | 330 | break; |
338 | 331 | } |
|
0 commit comments