Changeset: 4263fe684799 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=4263fe684799
Added Files:
        sql/test/BugTracker-2016/Tests/epoch.Bug-3979.sql
        sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.err
        sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.out
Modified Files:
        sql/test/BugTracker-2016/Tests/All
Branch: Jul2015
Log Message:

add test for bug 3979


diffs (110 lines):

diff --git a/sql/test/BugTracker-2016/Tests/All 
b/sql/test/BugTracker-2016/Tests/All
--- a/sql/test/BugTracker-2016/Tests/All
+++ b/sql/test/BugTracker-2016/Tests/All
@@ -19,3 +19,4 @@ join-with-references-2sides-crashes.Bug-
 memory-consumption-query-PLAN-25joins.Bug-3972
 leftjoin.Bug-3981
 subcorr-missing.Bug-3978
+epoch.Bug-3979
diff --git a/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.sql 
b/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.sql
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.sql
@@ -0,0 +1,2 @@
+SELECT epoch(1460453860-300);
+SELECT epoch(CAST(1460453860-300 AS INTEGER));
diff --git a/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.err 
b/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.err
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.err
@@ -0,0 +1,37 @@
+stderr of test 'epoch.Bug-3979` in directory 'sql/test/BugTracker-2016` itself:
+
+
+# 13:17:28 >  
+# 13:17:28 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32737" "--set" 
"mapi_usock=/var/tmp/mtest-28063/.s.monetdb.32737" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2016"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 13:17:28 >  
+
+# builtin opt  gdk_dbpath = 
/home/niels/scratch/rc-monetdb/Linux-x86_64/var/monetdb5/dbfarm/demo
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_vmtrim = no
+# builtin opt  monet_prompt = >
+# builtin opt  monet_daemon = no
+# builtin opt  mapi_port = 50000
+# builtin opt  mapi_open = false
+# builtin opt  mapi_autosense = false
+# builtin opt  sql_optimizer = default_pipe
+# builtin opt  sql_debug = 0
+# cmdline opt  gdk_nr_threads = 0
+# cmdline opt  mapi_open = true
+# cmdline opt  mapi_port = 32737
+# cmdline opt  mapi_usock = /var/tmp/mtest-28063/.s.monetdb.32737
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbpath = 
/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2016
+# cmdline opt  mal_listing = 0
+# cmdline opt  embedded_r = yes
+# cmdline opt  gdk_debug = 536870922
+
+# 13:17:29 >  
+# 13:17:29 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-28063" "--port=32737"
+# 13:17:29 >  
+
+
+# 13:17:29 >  
+# 13:17:29 >  "Done."
+# 13:17:29 >  
+
diff --git a/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.out 
b/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.out
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2016/Tests/epoch.Bug-3979.stable.out
@@ -0,0 +1,48 @@
+stdout of test 'epoch.Bug-3979` in directory 'sql/test/BugTracker-2016` itself:
+
+
+# 13:17:28 >  
+# 13:17:28 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=32737" "--set" 
"mapi_usock=/var/tmp/mtest-28063/.s.monetdb.32737" "--set" "monet_prompt=" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/home/niels/scratch/rc-monetdb/Linux-x86_64/var/MonetDB/mTests_sql_test_BugTracker-2016"
 "--set" "mal_listing=0" "--set" "embedded_r=yes"
+# 13:17:28 >  
+
+# MonetDB 5 server v11.21.18
+# This is an unreleased version
+# Serving database 'mTests_sql_test_BugTracker-2016', using 4 threads
+# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs and 128bit 
integers dynamically linked
+# Found 7.332 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2015 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on mapi:monetdb://localhost.nes.nl:32737/
+# Listening for UNIX domain connection requests on 
mapi:monetdb:///var/tmp/mtest-28063/.s.monetdb.32737
+# MonetDB/GIS module loaded
+# Start processing logs sql/sql_logs version 52200
+# Start reading the write-ahead log 'sql_logs/sql/log.13'
+# Finished reading the write-ahead log 'sql_logs/sql/log.13'
+# Finished processing logs sql/sql_logs
+# MonetDB/SQL module loaded
+# MonetDB/R   module loaded
+
+Ready.
+
+# 13:17:29 >  
+# 13:17:29 >  "mclient" "-lsql" "-ftest" "-Eutf-8" "-i" "-e" 
"--host=/var/tmp/mtest-28063" "--port=32737"
+# 13:17:29 >  
+
+#SELECT epoch(1460453860-300);
+% .L # table_name
+% sql_sub_single_value # name
+% timestamp # type
+% 26 # length
+[ 2016-04-12 09:32:40.000000   ]
+#SELECT epoch(CAST(1460453860-300 AS INTEGER));
+% .L1 # table_name
+% sql_sub_single_value # name
+% timestamp # type
+% 26 # length
+[ 2016-04-12 09:32:40.000000   ]
+
+# 13:17:29 >  
+# 13:17:29 >  "Done."
+# 13:17:29 >  
+
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to