|
|
@@ -1865,8 +1865,8 @@ SQL;
|
|
|
$queries[] = "update `BI_audit_ALL` set `regon` = null where `regon` = 0";
|
|
|
$queries[] = "update `BI_audit_ALL` set `krs` = null where `krs` = 0";
|
|
|
$queries[] = "update `BI_audit_ALL` set `pesel` = null where `pesel` = 0";
|
|
|
- $queries[] = "update `BI_audit_ALL` set `TERYT_SYM` = null where `TERYT_SYM` = 0";
|
|
|
- $queries[] = "update `BI_audit_ALL` set `TERYT_SYM_UL` = null where `TERYT_SYM_UL` = 0";
|
|
|
+ //$queries[] = "update `BI_audit_ALL` set `TERYT_SYM` = null where `TERYT_SYM` = 0";
|
|
|
+ //$queries[] = "update `BI_audit_ALL` set `TERYT_SYM_UL` = null where `TERYT_SYM_UL` = 0";
|
|
|
$queries[] = "update `BI_audit_ALL` set `nrDomu` = null where trim(`nrDomu`) = ''";
|
|
|
$queries[] = "update `BI_audit_ALL` set `nrLokalu` = null where trim(`nrLokalu`) = ''";
|
|
|
|
|
|
@@ -2087,7 +2087,7 @@ class BiAuditRelations {
|
|
|
$join = [];
|
|
|
foreach ($columns as $column) {
|
|
|
$join[] = "t1.{$column} = t2.{$column}";
|
|
|
- if ($row[$column]) $ok++;
|
|
|
+ if ($row[$column] !== null) $ok++;
|
|
|
}
|
|
|
if ($ok / count($columns) > 0.5) {
|
|
|
$joins[] = "(" . implode(" and ", $join) . ")";
|