Ticket #1218 (new defect)

Opened 3 years ago

Last modified 3 years ago

dCursorMixin._setKeyField fails if kf is tuple

Reported by: sunday Assigned to: somebody
Priority: major Milestone: 0.9.2
Component: db Version: 0.9.1
Keywords: Cc:

Description

function dCursorMixin._setKeyField erroneously casts kf to str if it is a tuple

Change History

03/14/09 03:35:43 changed by sunday

  • milestone changed from 1.0 to 0.9.2.

03/14/09 06:27:41 changed by sunday

Wait... Which one is correct? API doc says "KeyField?

Name of field that is the PK. If multiple fields make up the key, separate the fields with commas. (str)"

Step-By-Step Guide says "In the event that you use a compound primary key consisting of more than one field, enter that as a tuple of field names."

the latter seems more pythonic, a normal primary key could even be written as 1-tupel.