We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 735b23b commit 026ebbcCopy full SHA for 026ebbc
src/test/kotlin/examples/kotlin/animal/data/KCaseExpressionTest.kt
@@ -947,4 +947,21 @@ class KCaseExpressionTest {
947
select(case (id) { `else`("Fred") }) { from (animalData) }
948
}.withMessage(Messages.getString("ERROR.40"))
949
}
950
+
951
+ @Test
952
+ fun testInvalidCastMissingAs() {
953
+ assertThatExceptionOfType(KInvalidSQLException::class.java).isThrownBy {
954
+ cast {}
955
+ }.withMessage(Messages.getString("ERROR.43"))
956
+ }
957
958
959
+ fun testInvalidCastDoubleAs() {
960
961
+ cast {
962
+ "Fred" `as` "VARCHAR"
963
+ "Wilma" `as` "VARCHAR"
964
965
966
967
0 commit comments