pub unsafe extern "C" fn duckdb_prepare_error(
prepared_statement: duckdb_prepared_statement,
) -> *const c_charExpand 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.
history:
- stable: v0.2.8
@param prepared_statement The prepared statement to obtain the error from. @return const char*