From 7692aa54c44918b43c0745073ca84bdaf02632d5 Mon Sep 17 00:00:00 2001 From: hawk__ Date: Tue, 15 May 2012 19:17:23 +0000 Subject: [PATCH] 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 --- pg4wp/driver_pgsql_install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pg4wp/driver_pgsql_install.php b/pg4wp/driver_pgsql_install.php index 34f642e..8c81e7f 100644 --- a/pg4wp/driver_pgsql_install.php +++ b/pg4wp/driver_pgsql_install.php @@ -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\"