Re: RaiseWarn attribute for DBI
[email protected] (Tim Bunce) Fri, 18 Jan 2019 09:13:48 +0000
| Newsgroups | perl.dbi.dev |
|---|---|
| Message-ID | <20190118091348.xrhkbj3xu6ureft3@timac> |
On Thu, Jan 17, 2019 at 10:02:39AM +0100, [email protected] wrote: > > Currently DBI has only $dbh->{PrintWarn} attribute to control warnings. > When is set to true (by default) all warnings from DBI driver are passed > to perl's "warn" function. > > So I would propose to add $dbh->{RaiseWarn} attribute (off by default) > to behave like $dbh->{RaiseError}, but for warnings. I'd like to know more about the specific use-case(s) that prompted this. Tim. p.s. Re the compatibility topic in this thread: there will be no breaking changes to DBI.