Am 07.06.2013, 01:13 Uhr, schrieb Andy <[email protected]>:
I may be misunderstanding the question, but the reason that having a
favorite is optional is because I'm using mysql and mysql doesn't
supported deferred constraints.
Oh, I feel your pain! But you are using an engine that at leasts pretends
to support foreign key constraints. If not, book yourself in at the next
asylum!
So if favorite were "NOT NULL", then there would be
no way to create the thing.
Which is why it should be a relation all of its own. I've a sneaking
suspicion that I'm being incredibly dense and missing something obvious.
Charlie
--
Charlie Clark
Managing Director
Clark Consulting & Research
German Office
Kronenstr. 27a
Düsseldorf
D- 40217
Tel: +49-211-600-3657
Mobile: +49-178-782-6226
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.