On 24-May-06, at 3:59 PM, Mike Rylander wrote:
> On 5/24/06, Toby Thain <toby@xxxxxxxxxxxxx> wrote:
>>
>> On 24-May-06, at 1:39 PM, Mike Rylander wrote:
>>
> [snip]
Hi Mike,
>
>> > I'd be happy if there was an attr that the driver could set on
>> fields ... It would be up to the application to look for the
boolean
>> > attribute on fields, but at least it wouldn't break any existing
>> > applications, and would allow for future apps to make use of the
>> > information when it is available.
>>
>> You're right, an attribute rather than a new type would avoid
>> breaking existing applications and give you (PostgreSQL users) the
>> extra information you need. It would be meaningless for most
drivers
>> though :)
> ... Would there be any objection to me
> creating a patch to implement somthing close to the attr plan I
laid
> out above?
>...
I don't have any objection, but it may make more sense as a flag (not
an attribute), necessitating a "dbi_result_field_is_bool", because
attributes are defined per-type (and for backwards compatibility and
portability, we can't assume its type). Maybe Markus has an opinion
here.