Fix return value
This commit is contained in:
@@ -887,7 +887,8 @@ static int prepare(sqlite3_drv_t *drv, char *command, int command_size) {
|
|||||||
|
|
||||||
ErlDrvTermData spec[] = {
|
ErlDrvTermData spec[] = {
|
||||||
ERL_DRV_PORT, driver_mk_port(drv->port),
|
ERL_DRV_PORT, driver_mk_port(drv->port),
|
||||||
ERL_DRV_UINT, drv->prepared_count - 1
|
ERL_DRV_UINT, drv->prepared_count - 1,
|
||||||
|
ERL_DRV_TUPLE, 2
|
||||||
};
|
};
|
||||||
return driver_output_term(drv->port, spec, sizeof(spec) / sizeof(spec[0]));
|
return driver_output_term(drv->port, spec, sizeof(spec) / sizeof(spec[0]));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user