|
|
@@ -413,8 +413,8 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path) {
|
|
|
$hist_loop_root_cur['hist_time'][]=$sql_ext." ##408 ".$path;
|
|
|
$hist_loop_root_cur['hist_time'][]=$h;
|
|
|
// print_r($hist_loop);
|
|
|
-
|
|
|
- dig_next($hist_loop_root_cur['hist_loop'], $tables['Z'][$T],$h,$loop,$hist_loop_root_cur['hist_time'],$last_tbl,add_path($path,$T));
|
|
|
+ $path_root=$path.add_path($path,$T);
|
|
|
+ dig_next($hist_loop_root_cur['hist_loop'], $tables['Z'][$T],$h,$loop,$hist_loop_root_cur['hist_time'],$last_tbl,$path_root);
|
|
|
//rel dzieci $tables['Z']['BI_audit_CEIDG']['ref'][19]='BI_audit_CEIDG_pelnomocnicy';
|
|
|
if(isset($tables['Z'][$T]['ref'])) {
|
|
|
// echo "<br>#296 try to ref tables for T ".$T."<pre>";
|
|
|
@@ -439,7 +439,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path) {
|
|
|
// $hist_time[][$ref_table]=$h_rel_rec;
|
|
|
$hist_loop_cur['hist_time'][]=$sql_rel_rec." #435".$path;
|
|
|
$hist_loop_cur['hist_time'][]=$h_rel_rec;
|
|
|
- dig_next($hist_loop_cur['hist_loop'],$tables['Z'][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path,$ref_table));
|
|
|
+ dig_next($hist_loop_cur['hist_loop'],$tables['Z'][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path_root,$ref_table));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -468,7 +468,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path) {
|
|
|
//$hist_time[][$ref_table]=$h_rel_rec;
|
|
|
$hist_loop_cur['hist_time'][$ref_table][]=$sql_rel_rec." #464".$path;
|
|
|
$hist_loop_cur['hist_time'][$ref_table][]=$h_rel_rec;
|
|
|
- dig_next($hist_loop_cur['hist_loop'],$tables['Z'][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path,$ref_table));
|
|
|
+ dig_next($hist_loop_cur['hist_loop'],$tables['Z'][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path_root,$ref_table));
|
|
|
}
|
|
|
}
|
|
|
}
|