N°6442 - comment

This commit is contained in:
Eric Espie
2023-06-27 15:49:39 +02:00
parent 2c8db92504
commit f95cb50002

View File

@@ -463,6 +463,7 @@ class DatabaseAnalyzer
$sMyAttributeField = current($aCols); // get the first column for the moment
$sFilter = "FROM `$sTable` WHERE `$sTable`.`$sMyAttributeField` NOT IN ($sExpectedValues)";
if ($oAttDef->IsNullAllowed()) {
// NotEmptyToSql should have been in AttributeDefinition, as a workaround the search type is used
$sSearchType = $oAttDef->GetSearchType();
$sCondition = $this->NotEmptyToSql("`$sTable`.`$sMyAttributeField`", $sSearchType);
$sFilter .= " AND $sCondition";