Sujet : Re: VMS x86-64 database server
De : ldo (at) *nospam* nz.invalid (Lawrence D'Oliveiro)
Groupes : comp.os.vmsDate : 11. Jul 2025, 00:58:00
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <104pk28$14565$3@dont-email.me>
References : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
User-Agent : Pan/0.162 (Pokrosvk)
On Thu, 10 Jul 2025 19:05:42 -0400, Arne Vajhøj wrote:
If the PHP developer configure the database connection to not throw
exceptions because the developer want to check return status, then that
must be respected.
That’s a dumb way of doing it. Most of the errors from an SQL call
indicate program bugs. The only exception I have come across is
IntegrityError, when used to indicate an attempt to add a record with a
duplicate value for a key that must be unique. That can sometimes be
usefully caught and reported back to the user as an error with the data
that they are trying to enter.