Skip to content

Commit 3579aa0

Browse files
committed
bufix: @ReturnGeneratedKeys
1 parent 03e78c5 commit 3579aa0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

paoding-rose-jade/src/main/java/net/paoding/rose/jade/statement/UpdateQuerier.java

+2
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ private Object executeSingle(StatementRuntime runtime) {
102102
return result.floatValue();
103103
} else if (returnType == Number.class) {
104104
return result;
105+
} else if (returnType == String.class || returnType == CharSequence.class) {
106+
return String.valueOf(result);
105107
} else {
106108
throw new DataRetrievalFailureException(
107109
"The generated key is not of a supported numeric type: " + returnType.getName());

0 commit comments

Comments
 (0)