# HG changeset patch # User Alain Mazy # Date 1776193670 -7200 # Node ID 6e2e3e6651d42d811c66bbac76e35ccaa66895ab # Parent 03968d801f3f65e93f1f570a1715baf4978525e3 fix find_label for MySQL (cont) diff -r 03968d801f3f -r 6e2e3e6651d4 Tests/Tests.py --- a/Tests/Tests.py Tue Apr 14 15:03:35 2026 +0200 +++ b/Tests/Tests.py Tue Apr 14 21:07:50 2026 +0200 @@ -10498,7 +10498,9 @@ # The instance has labels "a" and "b" self.assertEqual(1, len(Execute([], 'All'))) self.assertEqual(1, len(Execute([], 'Any'))) - if IsOrthancVersionAbove(_REMOTE, 1, 12, 11): # From 1.12.11, 'None' with an empty labels list means "list all resources without any labels" + # From 1.12.11, 'None' with an empty labels list means "list all resources without any labels" + # But this is currently only implemented in SQLite and PostgreSQL + if IsOrthancVersionAbove(_REMOTE, 1, 12, 11) and not HasMySQLIndexPlugin(_REMOTE) and not HasODBCIndexPlugin(_REMOTE): self.assertEqual(0, len(Execute([], 'None'))) else: self.assertEqual(1, len(Execute([], 'None'))) @@ -10522,7 +10524,9 @@ # The instance has label "b" self.assertEqual(1, len(Execute([], 'All'))) self.assertEqual(1, len(Execute([], 'Any'))) - if IsOrthancVersionAbove(_REMOTE, 1, 12, 11): # From 1.12.11, 'None' with an empty labels list means "list all resources without any labels" + # From 1.12.11, 'None' with an empty labels list means "list all resources without any labels" + # But this is currently only implemented in SQLite and PostgreSQL + if IsOrthancVersionAbove(_REMOTE, 1, 12, 11) and not HasMySQLIndexPlugin(_REMOTE) and not HasODBCIndexPlugin(_REMOTE): self.assertEqual(0, len(Execute([], 'None'))) else: self.assertEqual(1, len(Execute([], 'None')))