|
|
@@ -87,7 +87,7 @@ $tables['Z']['BI_audit_KRS_company']['rel']['krs']='krs';
|
|
|
function start_dig($tables) {
|
|
|
global $db;
|
|
|
foreach($tables['Y'] as $Y=>$t) {
|
|
|
- $sql='select * from '.$Y.' where ID=12 or ID=19 or 1=1 limit 100' ;
|
|
|
+ $sql='select * from '.$Y.' where ID=12 or ID=19 or 1=12 limit 100' ;
|
|
|
$res=$db->query($sql);
|
|
|
while($h=$db->fetch($res)) {
|
|
|
$hist_loop[$Y][]=$h;
|
|
|
@@ -159,7 +159,7 @@ function dig_next($hist_loop,$prev_tbl,$prev_dig,$loop,$hist_time) {
|
|
|
$sql_rel_and_sql[$T][$z_rel_and_name]="select * from ".$T." where ( ";
|
|
|
$and=0;
|
|
|
foreach($z_rel_and_name_col as $z_rel_and_name_cur=>$z_rel_and_name_col_to) {
|
|
|
- if( $and==1) $sql_rel_and_sql[$T][$z_rel_and_name].=" and SOUNDEX(`".$z_rel_and_name_cur."`) = SOUNDEX('.".$z_rel_and_name_col_to."') and `".$z_rel_and_name_cur."` not like '%--%'" ;
|
|
|
+ if( $and==1) $sql_rel_and_sql[$T][$z_rel_and_name].=" and SOUNDEX(`".$z_rel_and_name_cur."`) = SOUNDEX('.".$z_rel_and_name_col_to."') " ;//and `".$z_rel_and_name_cur."` not like '%--%'
|
|
|
else $sql_rel_and_sql[$T][$z_rel_and_name].=" SOUNDEX(`".$z_rel_and_name_cur."`) = SOUNDEX('".$z_rel_and_name_col_to."')" ;
|
|
|
$and=1;
|
|
|
}
|