[web2py] Re: unsigned DAL integer

2012-06-25 Thread Horus
Thanks Anthony.

On Monday, June 25, 2012 2:27:19 PM UTC-4, Anthony wrote:
>
> Is there a way to get unsigned DAL integers ?
>>
>
> I don't think so. If you have created the table outside the DAL, perhaps 
> telling the DAL it's a regular "integer" field will still work, though.
>  
>
>> Is there a way to represent BIGINT using DAL?
>
>
> I'm not sure if this is in current stable, but in trunk, you can do:
>
> Field('mybigint', 'bigint') 
>
> And to get the DAL to use bigint's for all ID fields, do:
>
> DAL(..., bigint_id=True)
>
> Anthony
>

-- 





[web2py] Re: unsigned DAL integer

2012-06-25 Thread Anthony

>
> Is there a way to get unsigned DAL integers ?
>

I don't think so. If you have created the table outside the DAL, perhaps 
telling the DAL it's a regular "integer" field will still work, though.
 

> Is there a way to represent BIGINT using DAL?


I'm not sure if this is in current stable, but in trunk, you can do:

Field('mybigint', 'bigint') 

And to get the DAL to use bigint's for all ID fields, do:

DAL(..., bigint_id=True)

Anthony

--