Hi Julien,

Thanks for pointing this out! I should have taken a closer look at the 
documentation.

Another thing:
I took a quick look at trying to create a table containing a column:
Column('count', SmallInteger)

however, I get the error:
name 'SmallInteger' is not defined.

Column('count', SMALLINT)
however seems to work.

Maybe the documentation (Chapter: The Types System) should be updated from 
SmallInteger to SMALLINT.

Cheers, Martin



> -----Ursprüngliche Nachricht-----
> Von: Julien Cigar <[EMAIL PROTECTED]>
> Gesendet: 10.08.06 08:45:06
> An: Martin Stein <[EMAIL PROTECTED]>
> CC: sqlalchemy-users@lists.sourceforge.net
> Betreff: Re: [Sqlalchemy-users] One to one-relationship


> Hello Martin,
> 
> you can use the uselist=False parameter
> 
>  From the doc :
> The |backref()| function is often used to set up a bi-directional 
> one-to-one relationship. This is because the |relation()| function by 
> default creates a "one-to-many" relationship when presented with a 
> primary key/foreign key relationship, but the |backref()| function can 
> redefine the |uselist| property to make it a scalar
> 
> Regards,
> Julien
> 
> 
______________________________________________________________
Verschicken Sie romantische, coole und witzige Bilder per SMS!
Jetzt bei WEB.DE FreeMail: http://f.web.de/?mc=021193


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Sqlalchemy-users mailing list
Sqlalchemy-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlalchemy-users

Reply via email to