https://kotlinlang.org logo
#exposed
Title
# exposed
j

Jorge R

12/07/2018, 3:38 PM
hi guys, I've a question. Im a bit noob on exposed, I can see 'deleteWhere' returns Int. How can I know the result of the operation? 1(or itemId)-> deleted, 0-> not found?
I've tested it with Postman and it looks like 1-> deleted, 0 -> not deleted
t

tapac

12/07/2018, 3:57 PM
Should return count of deleted rows.
😲 1
j

Jorge R

12/07/2018, 9:52 PM
thanks!
f

FRQDO

12/08/2018, 7:59 PM
I like it when a dev says that one of their features should do something 😄
j

Jorge R

12/08/2018, 8:11 PM
At least he is right, tested with Postman 😙
t

tapac

12/09/2018, 5:14 PM
It should because it depends on jdbc driver implementation. There are much cases when driver didn't follow the jdbc spec.