Yasuhiro Horimoto 2018-10-11 14:29:55 +0900 (Thu, 11 Oct 2018) Revision: 0ef554e1cd7bc987af2dd82a014cc10db1945cc6 https://github.com/groonga/groonga/commit/0ef554e1cd7bc987af2dd82a014cc10db1945cc6 Merged 218919b: Merge pull request #877 from komainu8/add_test_for_cast_loose Message: test: add a test when the cast failed Added files: test/command/suite/select/function/cast_loose/character_only.expected test/command/suite/select/function/cast_loose/character_only.test Added: test/command/suite/select/function/cast_loose/character_only.expected (+9 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/function/cast_loose/character_only.expected 2018-10-11 14:29:55 +0900 (84f3a1dcb) @@ -0,0 +1,9 @@ +table_create Data TABLE_HASH_KEY ShortText +[[0,0.0,0.0],true] +load --table Data +[ +{"_key": "abc"} +] +[[0,0.0,0.0],1] +select Data --output_columns '_key, cast_loose(Int64, _key, 10)' +[[0,0.0,0.0],[[[1],[["_key","ShortText"],["cast_loose",null]],["abc",10]]]] Added: test/command/suite/select/function/cast_loose/character_only.test (+6 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/select/function/cast_loose/character_only.test 2018-10-11 14:29:55 +0900 (333d38b96) @@ -0,0 +1,6 @@ +table_create Data TABLE_HASH_KEY ShortText +load --table Data +[ +{"_key": "abc"} +] +select Data --output_columns '_key, cast_loose(Int64, _key, 10)' -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181011/c363f700/attachment.html>