|
|
@@ -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'
|