a.binder 9 лет назад
Родитель
Сommit
5d244332e0
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      SE/se-lib/Core/Database/Mysql.php

+ 1 - 1
SE/se-lib/Core/Database/Mysql.php

@@ -1019,7 +1019,7 @@ class Core_Database_Mysql extends Core_Database {
 																	      
 																	      
 																	      
-																	      } else if(strstr($VAL->Type, 'geometry(') && (    strstr($ARR_TABLE['FIELDS'][$INDEX_OF_CONFIG_TABLE]->Type, 'polygon('  ) or   strstr($ARR_TABLE['FIELDS'][$INDEX_OF_CONFIG_TABLE]->Type, 'point('  )    or strstr($ARR_TABLE['FIELDS'][$INDEX_OF_CONFIG_TABLE]->Type, 'linestring('  )   )       ) {
+																	      } else if(strstr($VAL->Type, 'geometry') && (    strstr($ARR_TABLE['FIELDS'][$INDEX_OF_CONFIG_TABLE]->Type, 'polygon'  ) or   strstr($ARR_TABLE['FIELDS'][$INDEX_OF_CONFIG_TABLE]->Type, 'point'  )    or strstr($ARR_TABLE['FIELDS'][$INDEX_OF_CONFIG_TABLE]->Type, 'linestring'  )   )       ) {
 																	         
 																	       $sql=" alter table `".$TABLE."` CHANGE `".$FIELD_TO_CHK."` `".$FIELD_TO_CHK."` ".$ARR_TABLE['FIELDS'][$INDEX_OF_CONFIG_TABLE]->Type." ; ";
 																		   DEBUG_S(-3,'Aktualizacja rozszerzajaca zakres pola Double ma byc ='.$src_char_len[1]." byla dest=".$dst_char_len[1] ,$sql,__FILE__, __FUNCTION__, __LINE__);