chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] New immediate values (was: DBI)


From: Graham Fawcett
Subject: Re: [Chicken-users] New immediate values (was: DBI)
Date: Sun, 2 Mar 2008 23:06:59 -0500

On Sun, Mar 2, 2008 at 9:56 PM, Elf <address@hidden> wrote:
>
>  out of curiousity, how can sql be returning symbols, ever?  enums are 
> integers,
>  yes?

Hi Elf,

My reasoning was that I don't want to needlessly restrict what a
database driver returns. In Postgresql's case, for example, the
database can define custom datatypes. It may be possible that a custom
type is best represented by a symbol. When your db has builtin
datatypes for arrays, circles, polygons and MAC addresses, and has an
open system for defining anything else, it broadens one's horizons
somewhat. :-)

In Postgres, Enums are string values in a restricted set. (I gave that
as a *possible* case where symbols might make sense, since they are
interned strings.)

Best,
Graham




reply via email to

[Prev in Thread] Current Thread [Next in Thread]