Commit Graph

109 Commits

Author SHA1 Message Date
eff2d4e634 Re-enabled error logging in trunk
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@969861 b8457f37-d9ea-0310-8a92-e5e31aec5664
2014-08-21 16:53:30 +00:00
b67e7c6780 Integrated changes from http://vitoriodelage.wordpress.com/2014/06/06/add-missing-wpsql_errno-in-pg4wp-plugin/
Changes for 1.3.1 release

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@969858 b8457f37-d9ea-0310-8a92-e5e31aec5664
2014-08-21 16:50:36 +00:00
fb058eda35 Re-enabled error logging in trunk
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@557873 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-06-14 10:40:13 +00:00
620c5653e2 Prepare for 1.3.0 release (versions, changelog, error logging off)
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@557870 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-06-14 10:37:41 +00:00
3e2733096e Removed an old unused upgrade hack
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@557852 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-06-14 09:39:23 +00:00
cb8eb1231d Corrected a problem with ID quoting when importing in WP 2.9.2
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@557841 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-06-14 09:15:09 +00:00
72b1fa1017 Enhanced wordpress-importer compatibility
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@547119 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-21 18:06:44 +00:00
7d70a7bc8c Removed a PHP notice in wpsql_connect()
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546732 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 22:17:54 +00:00
78e876dec0 Reworked wpsql_insert_id() for better report of errors
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546724 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 21:57:33 +00:00
9120c5fec2 Protect against a possible collision when handling 'ON DUPLICATE KEY'
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546689 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 19:24:06 +00:00
749fe8fb59 Updated call to mysql_escape_string() which is deprecated
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546644 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 16:58:04 +00:00
7af156a7c7 Update files for 1.3.0b1 release
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546585 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 13:47:51 +00:00
bb14143c77 Added a handle for DROP TABLE to remove sequences that are linked with the dropped table
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546567 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 12:57:04 +00:00
21754d862d Added a hack so that wp_terms_seq is updated on installation
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546556 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 12:30:56 +00:00
943887362c Moved the quoting hacks for PostgreSQL 9.1+ compatibility so that they apply to all queries
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@546507 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-20 10:24:18 +00:00
70b7af7142 Added a filter for 'CREATE TABLE IF NOT EXISTS'
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@545542 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-17 20:13:57 +00:00
b2c7c3e662 Enhanced the ignore for unexisting relations when installing
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@544614 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-15 19:19:51 +00:00
7692aa54c4 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
2012-05-15 19:17:23 +00:00
2e144463e5 Corrected 2 matching that were not accurate enough
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@544607 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-15 19:01:56 +00:00
bdea3e9546 Added a modifier for COUNT(.+)...ORDER BY... to be handled correctly even when ther is a newline character
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@542085 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-09 21:33:33 +00:00
4cc22003a8 Added a handle for converting CAST(... AS CHAR) to CAST(... AS TEXT) (Problem pointed out by Aart Jan)
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@542064 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-09 20:59:27 +00:00
cd0b6c4916 Forgot to remove 2 lines in the previous commit
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@542049 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-09 20:29:23 +00:00
e5f2f14aa1 Added support for specifying the port in the server hostname eg. 'localhost:3128'
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@542045 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-09 20:21:42 +00:00
dba478b671 Added support for PostgreSQL 9.1+ default config for standard_conforming_strings
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@542038 b8457f37-d9ea-0310-8a92-e5e31aec5664
2012-05-09 20:17:16 +00:00
afadc6b033 Added a timestamp to logs
Ignore errors about table "options" not existing when installing

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@458029 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-10-31 21:50:04 +00:00
c0111615da Re-enabled error logging in trunk
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436157 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-09-11 00:07:15 +00:00
a6c2ed3467 Forgot to change version to 1.2.2
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436154 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-09-11 00:02:08 +00:00
c89f560605 Correct SQL_CALC_FOUND_ROWS handling as it was broken by the latest code reorganisation
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436152 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-09-11 00:00:04 +00:00
a9d154b1b4 Prepare for 1.2.1 stable release
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436146 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-09-10 23:41:04 +00:00
b661a7bde5 Moved all the rewriting code to a separate function (for easier testing)
Reworked 'ON DUPLICATE ...' handling, could fail in some cases

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436145 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-09-10 23:38:01 +00:00
c9a58af607 Forgot to remove debugging code in previous commit ...
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436142 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-09-10 22:14:28 +00:00
5b7a8973df Modified the method for counting rows as mysql counts avery rows ignoring the limit clause
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@436140 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-09-10 22:11:30 +00:00
fb9bcadebd Added some column types conversion for WPMU support
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429285 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-27 00:36:48 +00:00
0dbc95e1a1 Added "ADD COLUMN" support to the "ALTER TABLE" handling code
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429284 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-27 00:35:29 +00:00
5644761e17 Improved SHOW INDEX for upgrades to detect indices correctly and so don't try to recreate them
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429283 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-27 00:34:15 +00:00
79a3ad03ae Modified the way install/upgrade code is detected
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429282 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-27 00:32:14 +00:00
e0f6734b01 Changed the way $wpdb is used to avoid some cases were it would be used undefined
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429271 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-26 23:12:33 +00:00
ac496694fe Improved INDEX creation support
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429262 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-26 21:59:01 +00:00
2ed7e56337 Added a handler for "SET NAMES ... COLLATE ..."
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@429260 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-26 21:57:44 +00:00
0b771d4fbe Re-enabled error logging in trunk
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@428371 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-24 21:33:26 +00:00
cff4f9d2d7 Prepare for 1.2.0 stable release
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@428368 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-24 21:29:38 +00:00
57879ef3ba Removed all references to ZdMultilang hacks
Added YEAR and MONTH to 'INTERVAL...' handling
Added a handle for correct counting of users and roles

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@428351 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-24 20:57:55 +00:00
2c552ff24b Prepare for tagging 1.2.0rc
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@425588 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-18 21:38:17 +00:00
02af2b1747 Corrected the pattern for matching UNIX_TIMESTAMP(....)
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@424297 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-16 16:04:10 +00:00
bd2a5978df Disabled all ZdMultilang support Hacks
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@423850 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-15 15:58:27 +00:00
95d3ee9db3 Fixed category listing
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@422045 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-11 08:10:29 +00:00
48f77e760c Get the server version when connecting, will be used later
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@419934 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-05 22:43:58 +00:00
bd6e71204a Rewrote database connection handling so that Wordpress installation can now tell you if your username and password are wrong.
Added support for connecting without a password but requiring PG4WP_INSECURE to be set to true.

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@419913 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-05 21:55:31 +00:00
d9d576aa99 Changed SQL_CALC_FOUND_ROWS handling
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@419551 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-04 23:01:39 +00:00
254f793473 Update the version returned by wpsql_get_server_info() to '5.0.30'
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@419541 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-04 22:24:02 +00:00