Some ovsqlite-util polish
Julien ÉLIE
julien at trigofacile.com
Tue Jul 30 07:59:43 UTC 2024
Hi Bo,Thanks for having spotted that. I'll commit it when I come back from holidays.I see in the DBI changelog that RaiseError has been applying to connect() since version 0.91 released in 1997. We can safely rely on it.Happy olympic summer to all!-- Julien
-------- Message d'origine --------De : Bo Lindbergh <2bfjdsla52kztwejndzdstsxl9athp at gmail.com> Date : 29/07/2024 13:09 (GMT+01:00) À : inn-workers at lists.isc.org Objet : Some ovsqlite-util polish
It doesn't seem to be explicitly stated in the DBI documentation,
but the RaiseError attribute passed to the connect method applies
to that method call itself as well as to future method calls
on the returned database handle. So, with RaiseError => 1,
there's no need to check the return value. Patch attached.
/Bo Lindbergh
--
inn-workers mailing list
inn-workers at lists.isc.org
https://lists.isc.org/mailman/listinfo/inn-workers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.isc.org/pipermail/inn-workers/attachments/20240730/1805d6aa/attachment.htm>
More information about the inn-workers
mailing list