summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2008-02-12 16:45:39 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2008-02-12 16:45:39 +0000
commit85e8cb7ffb9134fa34135bf83d231e0e55b0d0cf (patch)
tree8c78d5e0061fc20b73139773f4a61cbd30d5c0e4
parentadc929c0f1086415f291edbf0b86dc10499f2693 (diff)
downloadsqlalchemy-85e8cb7ffb9134fa34135bf83d231e0e55b0d0cf.tar.gz
add pk cols to assocaition table
-rw-r--r--doc/build/content/mappers.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/build/content/mappers.txt b/doc/build/content/mappers.txt
index 4915457f0..41cae6966 100644
--- a/doc/build/content/mappers.txt
+++ b/doc/build/content/mappers.txt
@@ -813,8 +813,8 @@ The association object pattern is a variant on many-to-many: it specifically is
Column('id', Integer, primary_key=True))
association_table = Table('association', metadata,
- Column('left_id', Integer, ForeignKey('left.id')),
- Column('right_id', Integer, ForeignKey('right.id')),
+ Column('left_id', Integer, ForeignKey('left.id'), primary_key=True),
+ Column('right_id', Integer, ForeignKey('right.id'), primary_key=True),
Column('data', String(50))
)