Add new KiwiJdbc utility to return null instead of blank strings #1047
Labels
new feature
A new feature such as a new class, method, package, group of classes, etc.
Milestone
Add a utility to
KiwiJdbc
to returnnull
if a string obtained from callingResultSet#getString
is blank (i.e. null, empty string, or whitespace-only).Signature:
Behavior:
If the value returned by
ResultSet#getString
isnull
, returnnull
. If it is blank, returnnull
. Otherwise, return the exact value without modification.Examples:
null
null
""
null
" "
null
"\t\r\n"
null
"alice"
"alice"
"Sphinx of black quartz, judge my vow"
"Sphinx of black quartz, judge my vow"
" string with leading whitespace"
" string with leading whitespace"
"string with trailing whitespace "
"string with trailing whitespace "
" string with leading and trailing whitespace "
" string with leading and trailing whitespace "
The text was updated successfully, but these errors were encountered: