Kouhei Sutou
null+****@clear*****
Fri Oct 25 15:24:11 JST 2013
Kouhei Sutou 2013-10-25 15:24:11 +0900 (Fri, 25 Oct 2013) New Revision: 24b22f8c89d0a53724c3a7153ea65935a297448e https://github.com/groonga/groonga/commit/24b22f8c89d0a53724c3a7153ea65935a297448e Message: test: add a test case for (epoch) Text -> Time cast Added files: test/command/suite/load/time/cast/string/epoch/under_32bit.expected test/command/suite/load/time/cast/string/epoch/under_32bit.test Added: test/command/suite/load/time/cast/string/epoch/under_32bit.expected (+11 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/time/cast/string/epoch/under_32bit.expected 2013-10-25 15:24:11 +0900 (ebcf422) @@ -0,0 +1,11 @@ +table_create Logs TABLE_NO_KEY +[[0,0.0,0.0],true] +column_create Logs created_at COLUMN_SCALAR Time +[[0,0.0,0.0],true] +load --table Logs +[ +{"created_at": "1382681699"} +] +[[0,0.0,0.0],1] +select Logs +[[0,0.0,0.0],[[[1],[["_id","UInt32"],["created_at","Time"]],[1,1382681699.0]]]] Added: test/command/suite/load/time/cast/string/epoch/under_32bit.test (+9 -0) 100644 =================================================================== --- /dev/null +++ test/command/suite/load/time/cast/string/epoch/under_32bit.test 2013-10-25 15:24:11 +0900 (56bebf0) @@ -0,0 +1,9 @@ +table_create Logs TABLE_NO_KEY +column_create Logs created_at COLUMN_SCALAR Time + +load --table Logs +[ +{"created_at": "1382681699"} +] + +select Logs -------------- next part -------------- HTML����������������������������...Download