Re: [svn:DBD-Pg] r11596 - in DBD-Pg/trunk: . lib/Bundle/DBD t

Andrew Dunstan <[email protected]>
Newsgroups gmane.comp.db.postgresql.dbdpg
Message-ID <[email protected]>

David E. Wheeler wrote:
> On Jul 26, 2008, at 20:01, [email protected] wrote:
>
>> +=head3 B<ReadOnly> (boolean)
>> +
>> +$dbh->{ReadOnly} = 1;
>> +
>> +Specifies if the current database connection should be in read-only 
>> mode or not.
>> +In this mode, changes that change the database are not allowed and 
>> will throw
>> +an error. Note: this method will B<not> work if L</AutoCommit> is true.
>> +
>
> Great idea, but is this a standard DBI attribute? If not, it should 
> probably be "pg_readonly" (or "pg_read_only"), no?
>
>

How do you propose to enforce it given the ability of functions to have 
side efects? By rolling back every transaction?

cheers

andrew
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.