Add return value handle logic about db operation 78/100778/1
authorsangwan.kwon <sangwan.kwon@samsung.com>
Tue, 29 Nov 2016 07:12:43 +0000 (16:12 +0900)
committersangwan.kwon <sangwan.kwon@samsung.com>
Tue, 29 Nov 2016 07:43:26 +0000 (16:43 +0900)
commit69bc9bdeaec09f8d9b1c6197708ecb1f9110656e
tree8fbee68de78fb7ec411f9362debaf51822e2edbb
parentc6a45c2b43ec7dde2806505b78db37fb62c54587
Add return value handle logic about db operation

* sqlite3_step()'s return value will be either
* SQLITE_BUSY, SQLITE_DONE, SQLITE_ROW ...

[ AS-IS ]
* Only handle SQLITE_DONE and SQLITE_ROW.
[ TO-BE ]
* Handle whole possible return value.

ref) https://www.sqlite.org/capi3ref.html#sqlite3_step

Change-Id: Ibe333545a8ca94428bce474c60e2ef7f4fe5a910
Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
src/server/src/cert-server-logic.c