pub unsafe extern "C" fn duckdb_prepare_error(
    prepared_statement: duckdb_prepared_statement
) -> *const c_char
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.