On Friday 17 March 2006 16:20, Oleg Broytmann wrote:
> On Fri, Mar 17, 2006 at 04:04:48PM +0300, Vetlugin Yury wrote:
> > AFAIK, SQLObject create all objects with ID field as "INT" (signed
> > integer) in
>
>    Python doesn't have unsigned int type.

Well, python actually does not have one, but databases do. 

>
> > database. I wonder if it could be created as "INT UNSIGNED"?
>
>    Why do you care?
>
It`s not the proper question. The right one is "why not?". AFAIK an object ID 
is allways more than zero. Any software I see right now do use this way.

In my case I have a class with ID field with value 0<= x < 2**32, it would be 
nice to use MyClass.ID field instead of MyClass.MyID.

> > The same question about "IntCol" class - can it be mapped as "int
> > unsigned" instead of "int"? I create "UIntCol" for now, but it`s not as
> > pretty as it
>
>    I think this is the best approach.
>
> > could be ;)
>
>    Why?

Well, I think 
        IntCol(... unsigned=True) 
are much pretty. 


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
sqlobject-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to