Internal Server Error concerning session_id (value too long for character type)

Antonio Terceiro terceiro at colivre.coop.br
Mon Jan 20 15:23:47 BRST 2014


On Mon, Jan 20, 2014 at 01:52:19PM -0300, Rodrigo Souto wrote:
> Hey Ana,
> 
> Remember to describe your AI's in english too.
> 
> Looks like this problem is happening because the session_id is bigger
> than 255 characters, which is the default size of a string field on the
> database. I'm not sure this is a common thing to happen (session_ids
> bigger than 255), but if it's happening I think we should change the
> session_id type to text instead of string.

don't do that.

any code that needs more than 255 characters to represent an id (of
whatever it is) is doing it wrong.

-- 
Antonio Terceiro <terceiro at colivre.coop.br>
Colivre - Cooperativa de Tecnologias Livres
http://www.colivre.coop.br/


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listas.softwarelivre.org/pipermail/noosfero-dev/attachments/20140120/a70f7c95/attachment.pgp>


More information about the Noosfero-dev mailing list