Commit Graph

62 Commits

Author SHA1 Message Date
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
hawk__
f3af016f8a Add support for correcting COUNT(*)...ORDER BY... statements
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@225162 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-04-04 09:45:30 +00:00
hawk__
65b683b42b Improved date functions handling
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@214733 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-03-07 22:52:38 +00:00
hawk__
4baf57dca8 Updated changelog and Installation guide
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@206787 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-16 22:37:24 +00:00
hawk__
df22e2a96e Added a special test to allow PG4WP's db.php to be "loaded" by WordPress
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@206782 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-16 22:25:22 +00:00
hawk__
28aa96d34a Integrated a WordPress plugin Header into db.php
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@206776 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-16 22:18:56 +00:00
hawk__
d67501962e Update WordPress compatibility to 2.9.2
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@206748 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-16 21:38:10 +00:00
hawk__
cd9e4e4148 Prepare for 1.1.0 release
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@206745 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-16 21:33:00 +00:00
hawk__
84dd9c29d5 Integrated pg_num_fields() as it exists :)
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@201954 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-04 21:36:46 +00:00
hawk__
d696af3c48 Updated readme.txt to prepare release 1.1.0rc4
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@201030 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-02 13:18:53 +00:00
hawk__
b0039af41f Correction d'une erreur de typo
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@201029 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-02 13:16:16 +00:00
hawk__
a6a05dc1bf Updated the readme.txt changelog and stable release
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@200850 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-01 21:48:12 +00:00
hawk__
a7076de977 Integrated Boris HUISGEN's patch for permalinks to work properly
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@200849 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-01 21:45:55 +00:00
hawk__
be67d11a9c Moved the hack about WP using meta_value = integer (instead of text) out of the SELECT handler
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@200848 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-01 21:40:16 +00:00
hawk__
0728b8b911 Reordered date_funcs array to have DAYOFMONTH handled first
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@200846 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-02-01 21:34:28 +00:00
hawk__
56ff78b0a6 Hack for WP using meta_value = integer (instead of text)
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@196866 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-22 21:00:15 +00:00
hawk__
776484759d Add support for DATE_SUB for Akismet 2.2.7
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195975 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-20 22:58:55 +00:00
hawk__
ede2bbe0d6 Moved 'INTERVAL 15 DAY' to a better place to handle DELETES
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195684 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-20 07:32:26 +00:00
hawk__
89313aaf10 Moved parts required only when installing/upgrading from driver_pgsql.php to driver_pgsql_install.php, loaded when required
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195579 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-19 22:56:00 +00:00
hawk__
db43171837 Fixed a typo
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195532 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-19 20:54:19 +00:00
hawk__
451c0891cf Fix a QUERY using an invalid GROUP BY clause
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195528 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-19 20:39:45 +00:00
hawk__
13b2c66361 REGEX pattern for UNIX_TIMESTAMP was not closed ... oops
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195521 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-19 20:20:19 +00:00
hawk__
f01c515d86 Add support for UNIX_TIMESTAMP
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195515 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-19 20:05:57 +00:00
hawk__
479270637b Add support for DAYOFMONTH( construct
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@195486 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-19 19:50:28 +00:00
hawk__
ce86463e48 Upgrading from WP 2.8.6 to WP 2.9.1 now works with only 1 possible non-blocking error
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@194612 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-16 22:15:14 +00:00
hawk__
44e60e6b10 Set PG4WP_LOG_ERRORS to true for development version
git-svn-id: https://plugins.svn.wordpress.org/postgresql-for-wordpress/trunk@194610 b8457f37-d9ea-0310-8a92-e5e31aec5664
2010-01-16 22:12:21 +00:00