quackdb_internal::ffi

Function duckdb_prepare_error

Source
pub unsafe extern "C" fn duckdb_prepare_error(
    prepared_statement: *mut _duckdb_prepared_statement,
) -> *const i8
Expand description

Returns the error message associated with the given prepared statement. If the prepared statement has no error message, this returns nullptr instead.

The error message should not be freed. It will be de-allocated when duckdb_destroy_prepare is called.

prepared_statement: The prepared statement to obtain the error from. returns: The error message, or nullptr if there is none.