Don't consider as unique clause with nested target

issue4552
review11161002
This commit is contained in:
Cédric Krier committed 2015-03-30 22:40:07 +02:00
1 parent e8e6fecc2d
commit ca9a85b5ec
2 files changed
+3

No files matched your search

+1
View File
@@ -1846,6 +1846,7 @@
unique_value: function(domain) {
if ((domain instanceof Array) &&
(domain.length == 1) &&
!domain[0][0].contains('.') &&
(domain[0][1] == '=')) {
return [true, domain[0][1], domain[0][2]];
} else {
+2
View File
@@ -1878,6 +1878,8 @@
QUnit.ok(!unique_value(domain)[0]);
domain = [['a', '=', 1], ['a', '=', 2]];
QUnit.ok(!unique_value(domain)[0]);
domain = [['a.b', '=', 1]];
QUnit.ok(!unique_value(domain)[0]);
});
QUnit.test('DomainInversion evaldomain', function() {