summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2006-01-31 02:15:16 +0000
committerMike Bayer <mike_mp@zzzcomputing.com>2006-01-31 02:15:16 +0000
commit865d947dc538e35936ba0f962f1c800bfe2afa00 (patch)
treedcf29f3cbf26b74e2eb9f994c723e3a283dcf74e /doc
parentf0078b7103edfbbe7111fdf1780dd97cfc292fb4 (diff)
downloadsqlalchemy-865d947dc538e35936ba0f962f1c800bfe2afa00.tar.gz
fixed code error
Diffstat (limited to 'doc')
-rw-r--r--doc/build/content/metadata.myt8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/build/content/metadata.myt b/doc/build/content/metadata.myt
index 162494493..26193bbf2 100644
--- a/doc/build/content/metadata.myt
+++ b/doc/build/content/metadata.myt
@@ -15,9 +15,9 @@
)
user_prefs = Table('user_prefs', engine,
- Column('pref_id', Integer, primary_key = True),
- Column('user_id', Integer, nullable = False, ForeignKey("users.user_id"))
- Column('pref_name', String(40), nullable = False),
+ Column('pref_id', Integer, primary_key=True),
+ Column('user_id', Integer, ForeignKey("users.user_id"), nullable=False),
+ Column('pref_name', String(40), nullable=False),
Column('pref_value', String(100))
)
</&>
@@ -182,4 +182,4 @@ DROP TABLE employees
<p>Defining a Sequence means that it will be created along with the table.create() call, and more importantly the sequence will be explicitly used when inserting new rows for this table. For databases that dont support sequences, the Sequence object has no effect. A sequence can also be specified with <span class="codeline">optional=True</span> which indicates the Sequence should only be used on a database that requires an explicit sequence (which currently is just Oracle). A database like Postgres, while it uses sequences to create primary keys, is often used via the SERIAL column option which removes the need for explicit access to the sequence.</p>
</&>
-</&> \ No newline at end of file
+</&>