[Lazarus] Postgres database again...

Joao Morais post at joaomorais.com.br
Tue May 27 15:18:59 CEST 2008


Graeme Geldenhuys wrote:
> Joao Morais wrote:
>> Graeme Geldenhuys wrote:
>>> I would highly recommend you use GUID's 
>>>
>>>   * Works on all database servers (char(36) to store the GUID)
>> char(32)?
> 
> No, CHAR(36) in my case...  :)
> GUID's have the default format: '{xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}'
> 
> I only remove the curly braces
>    eg:  '72AE84A0-1258-4C81-B2CF-1FC27EFBCD9C'

So remove also the "-" and save 4 bytes =)

Joao Morais




More information about the Lazarus mailing list