Another DBD::Pg question

Поиск
Список
Период
Сортировка
От Mithun Bhattacharya
Тема Another DBD::Pg question
Дата
Msg-id 3B45CA70.4939A20F@egurucool.com
обсуждение исходный текст
Список pgsql-general
This time perldoc DBD::Pg says :
----------------
       Data-Type bool

       The current implementation of PostgreSQL returns 't' for
       true and 'f' for false. From the perl point of view a
       rather unfortunate choice. The DBD-Pg module translates
       the result for the data-type bool in a perl-ish like
       manner: 'f' -> '0' and 't' -> '1'. This way the
       application does not have to check the database-specific
       returned values for the data-type bool, because perl
       treats '0' as false and '1' as true.

       PostgreSQL Version 6.2 considers the input 't' as true and
       anything else as false.  PostgreSQL Version 6.3 considers
       the input 't', '1' and 1 as true and anything else as
       false.  PostgreSQL Version 6.4 considers the input 't',
       '1' and 'y' as true and any other character as false.
----------------

Anyone using DBD::PG version 1.00 with PostGreSQL version 7.1.2 ?? If so
whats the interpretation of true in that.. The Author doesnt say what
his current implementation is.



Mithun

В списке pgsql-general по дате отправления:

Предыдущее
От: Alex Pilosov
Дата:
Сообщение: Re: Transactions within a function
Следующее
От: Peter Eisentraut
Дата:
Сообщение: Re: [SQL] Cross database foreign keys