Skip to content

Commit 536b197

Browse files
committed
Make multilink expressions work with mysql
1 parent f9b3fd2 commit 536b197

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

roundup/backends/rdbms_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2433,7 +2433,7 @@ def _filter_multilink_expression_fallback(
24332433
if is_valid(kws): append(last_id)
24342434
last_id, kws = nid, []
24352435
if kw is not None:
2436-
kws.append(kw)
2436+
kws.append(int(kw))
24372437

24382438
if last_id is not None and is_valid(kws):
24392439
append(last_id)

test/db_test_base.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,8 +1929,6 @@ def testFilteringMultilink(self):
19291929
ae(filt(None, {'nosy': ['1','2']}, ('+', 'status'),
19301930
('-', 'deadline')), ['4', '3'])
19311931

1932-
# Currently fails on the very first test for mysql
1933-
@pytest.mark.xfail
19341932
def testFilteringMultilinkExpression(self):
19351933
ae, iiter = self.filteringSetup()
19361934
kw1 = self.db.keyword.create(name='Key1')

0 commit comments

Comments
 (0)