In the parameters for this function, it says:

$fields Fields for the primary key.

I think it should be:

$fields An array of fields for the primary key.

CommentFileSizeAuthor
#2 637058.patch1.04 KBjhodgdon

Comments

jhodgdon’s picture

Version: 6.x-dev » 7.x-dev
Issue tags: +Novice

This is a reasonable and easy fix. Should be patched first in Drupal 7, then backported to Drupal 6.
http://api.drupal.org/api/function/db_add_primary_key/7

jhodgdon’s picture

Status: Active » Needs review
StatusFileSize
new1.04 KB

Here's a patch.

dries’s picture

Status: Needs review » Fixed

Committed to CVS HEAD. Thanks.

Status: Fixed » Closed (fixed)
Issue tags: -Novice

Automatically closed -- issue fixed for 2 weeks with no activity.