[KYUUBI #5100] [Minor] Fix unpaired quote in message pattern
### _Why are the changes needed?_ - Remove the existing single quote in message format which causes the argument 0 is not used - `A single quote itself must be represented by doubled single quotes '' throughout a String.` https://docs.oracle.com/javase/8/docs/api/java/text/MessageFormat.html ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [ ] [Run test](https://kyuubi.readthedocs.io/en/master/contributing/code/testing.html#running-tests) locally before make a pull request Closes #5100 from bowenliang123/datatype-msg. Closes #5100 8135ff146 [liangbowen] fix Authored-by: liangbowen <liangbowen@gf.com.cn> Signed-off-by: liangbowen <liangbowen@gf.com.cn>
This commit is contained in:
parent
bbc3fdf5e5
commit
25e1a165bf
@ -168,7 +168,7 @@ public class KyuubiPreparedStatement extends KyuubiStatement implements SQLPrepa
|
||||
// Can't infer a type.
|
||||
throw new KyuubiSQLException(
|
||||
MessageFormat.format(
|
||||
"Can't infer the SQL type to use for an instance of {0}. Use setObject() with an explicit Types value to specify the type to use.",
|
||||
"Cannot infer the SQL type to use for an instance of {0}. Use setObject() with an explicit Types value to specify the type to use.",
|
||||
x.getClass().getName()));
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user