If there are no rows, what does SqlQuery return? an empty list or null?

1,253 views
Skip to first unread message

Haris Michopoulos

unread,
Oct 23, 2017, 12:49:30 PM10/23/17
to jDBI
Hi,

Let's say we have the following query

@SqlQuery("Select name from users where username like :u")
List<String> fetchUsers(@BindIn("u") String u)


If the SqlQuery returns no rows, then what the method fetchUsers will return? An empty List or null?

Thank you

Brian McCallister

unread,
Oct 23, 2017, 3:03:49 PM10/23/17
to jd...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "jDBI" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jdbi+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages