You can't create an index ("KEY" in MySQL) within a CREATE TABLE statement. You need to do a CREATE INDEX statement following the table creation. I've attached my patch.

Comments

dww’s picture

Priority: Normal » Critical

now that i have my pgsql test site up again, i'm on a rampage to clean up and fix all the pgsql issues with project*. this is critical for pgsql. i'll take a look at your patch in the near future. meanwhile, if you care about this stuff, please take a look at http://drupal.org/node/82696 and keep your eye out for project + project_issues issues that mention pgsql which are marked as needs review.

thanks!
-derek

dww’s picture

Assigned: Unassigned » dww
Status: Needs review » Needs work

your table names for the indexes don't match the real tables, and the coding style needs a little help (just indentation stuff... core likes to keep such things all on 1 line). i'm cleaning it up right now... stay tuned.

dww’s picture

Status: Needs work » Needs review
StatusFileSize
new1.63 KB

this appears to work perfectly. anyone else care to test/review before i commit?
thanks,
-derek

dww’s picture

Status: Needs review » Fixed

after more testing, committed to HEAD and DRUPAL-4-7--2.

Anonymous’s picture

Status: Fixed » Closed (fixed)