]> git.nbdom.net Git - nb.git/commitdiff
lib/php/db/types/pgsql.php
authorNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 10 Jan 2018 05:31:12 +0000 (05:31 +0000)
committerNicolas Boisselier <nicolas.boisselier@gmail.com>
Wed, 10 Jan 2018 05:31:12 +0000 (05:31 +0000)
lib/php/db/types/pgsql.php

index 0837a2e03f9e118f5a13c6c31808eadf3d4a82e3..c7f032170c94c825946ba4c50b6d642ff7d315e8 100644 (file)
@@ -24,7 +24,8 @@ $DB_TYPES['pgsql'] = array (
 'databases' => 'SELECT datname as name,pg_catalog.pg_get_userbyid(datdba) as owner,pg_catalog.pg_encoding_encoding) as encoding, datcollate as "collate",datctype as "Ctype" FROM pg_catalog.pg_database',
 
 'sql.drop' => 'DROP <T.TYPE> IF EXISTS "<T.NAME>" CASCADE',
-'tables' => "SELECT table_name as name,LOWER(CASE table_type WHEN 'BASE TABLE' THEN 'TABLE' ELSE table_type END) as type,table_type FROM information_schema.tables WHERE table_type in('BASE TABLE','VIEW') AND table_schema = 'public'",
+# NB 10.01.18 'tables' => "SELECT table_name as name,LOWER(CASE table_type WHEN 'BASE TABLE' THEN 'TABLE' ELSE table_type END) as type,table_type FROM information_schema.tables WHERE table_type in('BASE TABLE','VIEW') AND table_schema = 'public'",
+'tables' => "SELECT table_name as name,LOWER(CASE table_type WHEN 'BASE TABLE' THEN 'TABLE' ELSE table_type END) as type FROM information_schema.tables WHERE table_type in('BASE TABLE','VIEW') AND table_schema = 'public'",
 
 'table.sql.create' => function($sql) {
   $sql = preg_replace('/ESCAPE \'.*?\'/','',$sql);