|
|
@@ -139,7 +139,7 @@ function start_dig($tables) {
|
|
|
while($h=$db->fetch($res)) {
|
|
|
$hist_loop[$Y][]=$h;
|
|
|
$hist_time[][$Y]=$h;
|
|
|
- dig_next($hist_loop,$t,$h,1,$hist_time,$Y,add_path('//',$Y));
|
|
|
+ dig_next($hist_loop,$t,$h,1,$hist_time,$Y,add_path('//',$Y,'Y'));
|
|
|
unset($hist_time);
|
|
|
}
|
|
|
}
|
|
|
@@ -147,8 +147,8 @@ function start_dig($tables) {
|
|
|
|
|
|
|
|
|
|
|
|
-function add_path($path,$last_tbl) {
|
|
|
- $path.="/".$last_tbl;
|
|
|
+function add_path($path,$last_tbl,$table_class) {
|
|
|
+ $path.="/".$last_tbl."(".$table_class.")";
|
|
|
return $path;
|
|
|
}
|
|
|
|
|
|
@@ -547,7 +547,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path,$ta
|
|
|
$hist_loop_root_cur['hist_time'][]=$sql_ext." ##408 ".$path;
|
|
|
$hist_loop_root_cur['hist_time'][]=$h;
|
|
|
// print_r($hist_loop);
|
|
|
- $path_root=add_path($path,$T);
|
|
|
+ $path_root=add_path($path,$T,$table_class);
|
|
|
dig_next($hist_loop_root_cur['hist_loop'], $tables[$table_class][$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[$table_class][$T]['ref'])) {
|
|
|
@@ -573,7 +573,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path,$ta
|
|
|
// $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[$table_class][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path_root,$ref_table));
|
|
|
+ dig_next($hist_loop_cur['hist_loop'],$tables[$table_class][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path_root,$ref_table,$table_class));
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -602,7 +602,7 @@ function dig_arr_cur($hist_loop,$T,$sql_ext,$hist_time,$loop,$last_tbl,$path,$ta
|
|
|
//$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[$table_class][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path_root,$ref_table));
|
|
|
+ dig_next($hist_loop_cur['hist_loop'],$tables[$table_class][$ref_table],$h_rel_rec,$loop,$hist_loop_cur['hist_time'],$ref_table,add_path($path_root,$ref_table,$table_class));
|
|
|
}
|
|
|
}
|
|
|
}
|