La gente de cake implento UUID para que funcionara, tanto con BINARY(36)
como con char(36).
puesto que los 36 caracteres al igual que los el BINARY a 36, permiten el
correcto funcionamientos de UUID a 128bits.


"Primary keys are normally defined as INT fields. The database will
automatically increment the field, starting at 1, for each new record that
gets added. Alternatively, if you specify your primary key as a CHAR(36) or
BINARY(36), CakePHP will automatically generate
UUIDs<http://en.wikipedia.org/wiki/UUID> when
new records are created."

lo que pasa es que en la versión en español no aparece nada de BINARY(36)

http://book.cakephp.org/view/1016/Using-UUIDs-as-Primary-Keys
saludos.

2011/6/6 gremlin <[email protected]>

> UUID is char(36) not BINARY(36)
>
>
> On Jun 3, 10:11 am, adgranados <[email protected]> wrote:
> > Estoy manejando un modelo llamado canal, y para la llave primaria,
> > estoy utilizando, como tipo de dato, binary(36), para que cakephp
> > genere un UUID. el problema, es que cuando, intento correr el test,
> > cake genera el sql con el tipo de dato equivocado, colocando blob(36)
> > y esto genera un error en mysql. ya revice el archivo de fixtures para
> > este modelo y el campo id, tiene como tipo de dato, binary(36).
> >
> > por favor ayudenme con esto, gracias
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> [email protected] For more options, visit this group
> at http://groups.google.com/group/cake-php
>



-- 
Daniel Jimenez
Est Ingenieria de Sistemas
Freemi developer
Celular: +57-318-872-53-98.
Fijo Bogota: +57-1-630-23-38

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to