Sfoglia il codice sorgente

todo nie dziala PHP Fatal error: Core_Pdo->fetchAll(' show fields fr...')\n#2 /Library/Server/Web/Data/Sites/SE-production-git/SE/superedit-SQIX_STRUCTURE_DB_SYNC.php(775): Data_Source->get_cols()\n#3

a.binder 8 anni fa
parent
commit
6d501947bc
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7 2
      SE/superedit-SQIX_STRUCTURE_DB_SYNC.php

+ 7 - 2
SE/superedit-SQIX_STRUCTURE_DB_SYNC.php

@@ -761,7 +761,8 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 						//trzeba sprawdzic, czy dany typ jest komorka w tabeli
 						//trzeba sprawdzic, czy dany typ jest komorka w tabeli
 					
 					
 					//tylko jezeli wszedl z tego importu
 					//tylko jezeli wszedl z tego importu
-					if(isset($zasoby_to_import_arr[$h->SRC_TABLE_ID])) {
+					/* TODO @2017-09-25 nie dziala funkcja get_cols jak nie ma tabeli ma fatal error
+						if(isset($zasoby_to_import_arr[$h->SRC_TABLE_ID])) {
 					
 					
 						$sql_chk="select t2.`ID` as ID_TABLE, t2.`TYPE`,t2.`DESC` as `TABLE`, t1.`DESC`,t1.`COLUMN_DEFAULT`,t1.`IS_NULLABLE`,t1.`COLUMN_TYPE`,t1.`IS_AUTO_INCREMENT` from CRM_LISTA_ZASOBOW as t1 left join CRM_LISTA_ZASOBOW as t2 on t1.PARENT_ID=t2.ID where t1.ID='".$h->SRC_TABLE_ID."' and t1.`TYPE`='KOMORKA' and t2.`TYPE`='TABELA'";
 						$sql_chk="select t2.`ID` as ID_TABLE, t2.`TYPE`,t2.`DESC` as `TABLE`, t1.`DESC`,t1.`COLUMN_DEFAULT`,t1.`IS_NULLABLE`,t1.`COLUMN_TYPE`,t1.`IS_AUTO_INCREMENT` from CRM_LISTA_ZASOBOW as t1 left join CRM_LISTA_ZASOBOW as t2 on t1.PARENT_ID=t2.ID where t1.ID='".$h->SRC_TABLE_ID."' and t1.`TYPE`='KOMORKA' and t2.`TYPE`='TABELA'";
 						//trzeba sprawdzic, czy taka komorka istnieje w danej tabeli
 						//trzeba sprawdzic, czy taka komorka istnieje w danej tabeli
@@ -800,7 +801,11 @@ $CONNLOCAL->query('set global max_allowed_packet=1000000000');
 							//print_r($CONNREMOTE);
 							//print_r($CONNREMOTE);
 							//die();
 							//die();
 						}
 						}
-					} // else echo "<br> id ".$h->SRC_TABLE_ID." nie jest w arrayu";
+					} */
+					
+					
+					
+					// else echo "<br> id ".$h->SRC_TABLE_ID." nie jest w arrayu";
 				          /* if(in_array($h->SRC_TABLE_ID, array_keys($zasoby_to_import_arr))) {
 				          /* if(in_array($h->SRC_TABLE_ID, array_keys($zasoby_to_import_arr))) {
 								$zasobObj = ProcesHelper::getZasobTableInfo($h->DST_TABLE_ID);
 								$zasobObj = ProcesHelper::getZasobTableInfo($h->DST_TABLE_ID);
 								if ($zasobObj) {
 								if ($zasobObj) {