Author: sam.halliday
Description:
When attempting to run the maintenance/update.php script on mediawiki 1.17.0 and the latest SVN of all the ArticleFeedback dependencies, I see the following error (even if I run the script several times)
Creating click_tracking table...PHP Warning: pg_query(): Query failed: ERROR: syntax error at or near "NOT"
LINE 1: ...Tracking/patches/ClickTracking.sql ) */ TABLE IF NOT EXISTS...
^ in /path/to/includes/db/DatabasePostgres.php on line 237
A database query syntax error has occurred.
The last attempted database query was:
"CREATE TABLE IF NOT EXISTS click_tracking (
action_time char(14) NOT NULL,
session_id varbinary(255) NOT NULL,
is_logged_in tinyint NOT NULL,
user_total_contribs integer,
user_contribs_span1 integer,
user_contribs_span2 integer,
user_contribs_span3 integer,
namespace integer NOT NULL,
event_id integer NOT NULL,
additional_info varbinary(255)
) /*$wgDBTableOptions*/
"
from within function "DatabaseBase::sourceFile( /path/to/extensions/ClickTracking/patches/ClickTracking.sql )".
Database returned error "1: ERROR: syntax error at or near "NOT"
LINE 1: ...Tracking/patches/ClickTracking.sql ) */ TABLE IF NOT EXISTS...
Version: unspecified
Severity: enhancement
Whiteboard: wikimedia[unmaintained]