The callback function has to return 0 or sql processing fails

Which means we report an error even if there wasn't a problem.

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2015-02-19 19:51:12 -08:00
parent 4682002474
commit 6a2efd9ff6

View file

@ -2087,6 +2087,7 @@ extern int dm5_cylinders(void *handle, int columns, char **data, char **column)
if (data[3])
cur_dive->cylinder[cur_cylinder_index].gasmix.he.permille = atoi(data[3]) * 10;
cylinder_end();
return 0;
}