Преглед изворни кода

akt do synchronizacji GIS char

a.binder пре 11 година
родитељ
комит
2dfbd77623
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      SE/se-lib/Core/Database/Pgsql.php

+ 3 - 0
SE/se-lib/Core/Database/Pgsql.php

@@ -133,6 +133,9 @@ class Core_Database_Pgsql extends Core_Database {
        ( select cast(replace(pg_catalog.format_type(f.atttypid,f.atttypmod), 'integer', 'int(11)') as char(255)) )
      when pg_catalog.format_type(f.atttypid,f.atttypmod) like '%character varying%'   then 
        ( select cast(replace(pg_catalog.format_type(f.atttypid,f.atttypmod), 'character varying', 'varchar') as char(255)) )
+     when pg_catalog.format_type(f.atttypid,f.atttypmod) like 'character(%'  then 
+       ( select cast(replace(pg_catalog.format_type(f.atttypid,f.atttypmod), 'character', 'varchar') as char(255)) )
+     
      when pg_catalog.format_type(f.atttypid,f.atttypmod) like 'timestamp without time zone' then 'datetime'
      when pg_catalog.format_type(f.atttypid,f.atttypmod) like 'date' then 'date'
      when pg_catalog.format_type(f.atttypid,f.atttypmod) like 'text' then 'text'