Corrected a typo and added a WPMU required translation

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@544612 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
hawk__
2012-05-15 19:17:23 +00:00
parent 2e144463e5
commit 7692aa54c4

View File

@ -30,7 +30,7 @@
'tinyint(2)' => 'smallint',
'tinyint(1)' => 'smallint',
"enum('0','1')" => 'smallint',
'COLLATE utf8_general_ci' => '',
);
function pg4wp_installing( $sql, &$logto)
@ -152,7 +152,7 @@ $sql = "SELECT pg_attribute.attname AS \"Field\",
ELSE 'YES'
END AS \"Null\",
CASE pg_type.typname
WHEN 'varchar' THEN substring(pg_attrdef.adsrc FROM '^\'(.*)\'.*$')
WHEN 'varchar' THEN substring(pg_attrdef.adsrc FROM '^''(.*)''.*$')
WHEN 'timestamp' THEN CASE WHEN pg_attrdef.adsrc LIKE '%now()%' THEN '0000-00-00 00:00:00' ELSE pg_attrdef.adsrc END
ELSE pg_attrdef.adsrc
END AS \"Default\"