Method __builtin.Sql.Connection()->error()
- Method
error
int
|string
error(void
|int
clear
)- Description
The textual description of the last server-related error. Returns
0
if no error has occurred yet. It is not cleared upon reading (can be invoked multiple times, will return the same result until a new error occurs).- Note
The string returned is not newline-terminated.
- Parameter
clear
To clear the error, set it to
1
.