Add support for DAYOFMONTH( construct
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195486 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
@@ -155,6 +155,7 @@
|
|||||||
'YEAR(' => 'EXTRACT(YEAR FROM ',
|
'YEAR(' => 'EXTRACT(YEAR FROM ',
|
||||||
'MONTH(' => 'EXTRACT(MONTH FROM ',
|
'MONTH(' => 'EXTRACT(MONTH FROM ',
|
||||||
'DAY(' => 'EXTRACT(DAY FROM ',
|
'DAY(' => 'EXTRACT(DAY FROM ',
|
||||||
|
'DAYOFMONTH(' => 'EXTRACT(DAY FROM ',
|
||||||
);
|
);
|
||||||
|
|
||||||
$sql = str_replace( 'ORDER BY post_date DESC', 'ORDER BY YEAR(post_date) DESC, MONTH(post_date) DESC', $sql);
|
$sql = str_replace( 'ORDER BY post_date DESC', 'ORDER BY YEAR(post_date) DESC, MONTH(post_date) DESC', $sql);
|
||||||
|
@@ -50,7 +50,7 @@ There is no screenshot for this plugin
|
|||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
* Added DAYOFMONTH support (Thanks to Pete Deffendol for noticing the problem)
|
||||||
* Upgrading from WP 2.8.6 to WP 2.9.1 works with a minor error
|
* Upgrading from WP 2.8.6 to WP 2.9.1 works with a minor error
|
||||||
Upgrading should remove an index on table "wp_options" that may not exist, throwing an error
|
Upgrading should remove an index on table "wp_options" that may not exist, throwing an error
|
||||||
* Installing WP 2.9.1 works smoothly
|
* Installing WP 2.9.1 works smoothly
|
||||||
|
Reference in New Issue
Block a user