I don't mean to set the length, i just wanted to know the DAL behavior
behind the scene. So, DAL translate 'string:list' to a list in
databases that natively support lists and to a TEXT field on normal
relational databases and hence set the length of the text field to the
default ?

2017-11-17 15:53 GMT-05:00 Donald McClymont <donaldm2...@gmail.com>:
> I don’t think you can set this but not sure why you would want to.  However 
> beware if testing the length of the field as I think if you only have 1 item 
> in the list then this is a string and you get the number of chars in the 
> string.  While if you have more than 1 you get the length of the list.  So 
> you may need to test the type before using length to ensure you get what you 
> expect.   I don’t know if this would be considered a bug or if it is still 
> the way it works but it was how it worked in 2.15.x and may have been a 
> change from 2.14.x.  I haven’t checked 2.16.1
>
> Donald
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to the Google Groups 
> "web2py-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.



-- 
Msc. Yoel Benítez Fonseca

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to