mirror of
https://github.com/PostgreSQL-For-Wordpress/postgresql-for-wordpress.git
synced 2025-07-30 17:57:13 +02:00
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:
@ -30,7 +30,7 @@
|
|||||||
'tinyint(2)' => 'smallint',
|
'tinyint(2)' => 'smallint',
|
||||||
'tinyint(1)' => 'smallint',
|
'tinyint(1)' => 'smallint',
|
||||||
"enum('0','1')" => 'smallint',
|
"enum('0','1')" => 'smallint',
|
||||||
|
'COLLATE utf8_general_ci' => '',
|
||||||
);
|
);
|
||||||
|
|
||||||
function pg4wp_installing( $sql, &$logto)
|
function pg4wp_installing( $sql, &$logto)
|
||||||
@ -152,7 +152,7 @@ $sql = "SELECT pg_attribute.attname AS \"Field\",
|
|||||||
ELSE 'YES'
|
ELSE 'YES'
|
||||||
END AS \"Null\",
|
END AS \"Null\",
|
||||||
CASE pg_type.typname
|
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
|
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
|
ELSE pg_attrdef.adsrc
|
||||||
END AS \"Default\"
|
END AS \"Default\"
|
||||||
|
Reference in New Issue
Block a user