Commit Graph

87 Commits

Author SHA1 Message Date
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
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
hawk__
7b9a6a8273 Corrected table prefixing, $table_prefix has been deprecated a long time ago
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@419539 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-04 22:11:49 +00:00
hawk__
1a05e62dac The required handling code wasn't loaded in some cases when a plugin created his own tables in the database
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418968 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-03 21:30:21 +00:00
hawk__
725baa8cfb Split 'db.php' so it is now just some kind of a 'bootloader'
The 'pg4wp' directory should be put in 'wp-content' instead of 'wp-content/plugins' (which is still supported)

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418484 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-02 23:27:36 +00:00
hawk__
0f00a46d2a More specific handling of "comment_ID" badly written from Akismet
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418105 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-02 00:11:18 +00:00
hawk__
8781f2aa15 Improved Akismet compatibility
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418101 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-02 00:01:12 +00:00
hawk__
959263d68d git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418100 b8457f37-d9ea-0310-8a92-e5e31aec5664 2011-08-02 00:00:07 +00:00
hawk__
0ec3dc02f2 Throw an error message when PostgreSQL extension is not loaded into PHP
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418091 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-01 23:07:34 +00:00
hawk__
a8606afaf3 Updated readme.txt with latest changes
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418090 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-01 22:45:30 +00:00
hawk__
29033b4871 Excluded converting "NULLIF", patch received from Jamie Strachan
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418089 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-01 22:42:10 +00:00
hawk__
7e63ec4e1c Corrected users listing error
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418088 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-01 22:34:09 +00:00
hawk__
a51d5b5532 Corrections for WP 3.1+ support
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418075 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-01 21:43:06 +00:00
hawk__
fc3fa76f97 Added special handling for latest term_id insertion retrieval
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418060 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-01 21:05:30 +00:00
hawk__
bd44178bd5 Moved Insert table name catching for insert ID retrieving to work properly
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@418055 b8457f37-d9ea-0310-8a92-e5e31aec5664
2011-08-01 20:48:51 +00:00
hawk__
e8b97235bd Reduced backick removal collision risks
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226906 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-09 00:58:19 +00:00
hawk__
803e38aa31 Backticks and capital text containing 'ID' now work
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226904 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-09 00:45:33 +00:00
hawk__
738e2c5c3c Fix an inadequate explode delimiter
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226896 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-09 00:09:06 +00:00
hawk__
394f86a3e8 Implemented a generic "INTERVAL xx DAY|HOUR|MINUTE|SECOND" handler
Prepare workaround for undesirable effects (works with new content for now)

git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226893 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-09 00:04:58 +00:00
hawk__
f0d659ecad Improve MySQL "IF" conversion
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@226244 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-07 23:41:32 +00:00
hawk__
03581e4a52 Reworked db.php a bit to remove some more errors
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225359 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-04 22:59:10 +00:00
hawk__
d4ef5c7c98 Improved db.php to remove notices and possible fatal errors
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225356 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-04 22:30:30 +00:00
hawk__
5a8881f5ea Fix a typo in a regex pattern
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225355 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-04 22:28:58 +00:00
hawk__
24a2e5ea7c Updated readme.txt
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225163 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-04 09:54:51 +00:00