Client APIs
API Reference Overview
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.  
###### Syntax {#docs:api:c:api::syntax}  
```c
const char *duckdb_prepare_error(
duckdb_prepared_statement prepared_statement
);
```  
###### Parameters {#docs:api:c:api::parameters}  
* `prepared_statement`: The prepared statement to obtain the error from.  
###### Return Value {#docs:api:c:api::return-value}  
The error message, or `nullptr` if there is none.  
<br>