[Groonga-commit] groonga/groonga at c8814d8 [master] test: add a test for a overflow bug on Text -> Time cast

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Oct 25 15:23:17 JST 2013


Kouhei Sutou	2013-10-25 15:23:17 +0900 (Fri, 25 Oct 2013)

  New Revision: c8814d8481a12b4f3af7a37f298c371a25f03cc8
  https://github.com/groonga/groonga/commit/c8814d8481a12b4f3af7a37f298c371a25f03cc8

  Message:
    test: add a test for a overflow bug on Text -> Time cast
    
    This bug was fixed in d09c6b74d768ef661a5a5ecf61d968948c16b43e.

  Added files:
    test/command/suite/load/time/cast/string/epoch/over_32bit.expected
    test/command/suite/load/time/cast/string/epoch/over_32bit.test

  Added: test/command/suite/load/time/cast/string/epoch/over_32bit.expected (+11 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/load/time/cast/string/epoch/over_32bit.expected    2013-10-25 15:23:17 +0900 (faa0548)
@@ -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": "4417945200"}
+]
+[[0,0.0,0.0],1]
+select Logs
+[[0,0.0,0.0],[[[1],[["_id","UInt32"],["created_at","Time"]],[1,4417945200.0]]]]

  Added: test/command/suite/load/time/cast/string/epoch/over_32bit.test (+9 -0) 100644
===================================================================
--- /dev/null
+++ test/command/suite/load/time/cast/string/epoch/over_32bit.test    2013-10-25 15:23:17 +0900 (be50b0a)
@@ -0,0 +1,9 @@
+table_create Logs TABLE_NO_KEY
+column_create Logs created_at COLUMN_SCALAR Time
+
+load --table Logs
+[
+{"created_at": "4417945200"}
+]
+
+select Logs
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index