sqlite_signal_error

mIRC SQLite

sqlite_signal_error
Allows user defined functions to signal an error.
Syntax
$sqlite_signal_error ( error )
/sqlite_signal_error error
Parameters
error
The error to be signaled.
Return Value
1 on success, or $null if there was an error.
Remarks
It is usually ok to ignore the return value of $sqlite_signal_error because the only case an error is returned it's called from an alias that isn't an user defined function.
Example
; User defined function
alias udf_error {
  sqlite_signal_error this function will always signal an error
}

; Example, always outputs error
sqlite_create_function udf_error udf_error -1
sqlite_exec SELECT udf_error()
if (%sqlite_errno != $SQLITE_OK) {
  echo 4 -a %sqlite_errstr
}