v5:reference:connection:ignoreerrors
This is an old revision of the document!
ignoreErrors
Syntax
mixed function ignoreErrors( mixed $override )
Description
The function ignoreErrors()
provides a way of overriding certain aspects of error handling within ADOdb. There are 2 different behaviours based on what parameters are passed.
Parameter Format
Whether used as a setter or getter, The parameter array format is as follows:
Index | Database Setting | Description |
---|---|---|
0 | raiseErrorFn | An indication the current database object error status. This flag is set automatically if a connection or executed statement fails |
1 | _transOk | An indicator of a the current transactional status |
This array is represented by $override
in the options below.
1st Usage
If the function is used as ignoreErrors()
or ignoreErrors(false)
the following behaviour occurs:
- The database status is saved off in $override, as described above
- The raiseErrorFn flag is set to false.
- The function returns $override.
2nd usage
v5/reference/connection/ignoreerrors.1437340641.txt.gz · Last modified: 2017/04/21 11:34 (external edit)