Changeset: ef4c8fa0fcb3 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ef4c8fa0fcb3
Added Files:
        sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.SQL.py
        
sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.err
        
sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.out
Modified Files:
        sql/test/BugTracker-2012/Tests/All
Branch: Oct2012
Log Message:

* added test for bug 2962


diffs (129 lines):

diff --git a/sql/test/BugTracker-2012/Tests/All 
b/sql/test/BugTracker-2012/Tests/All
--- a/sql/test/BugTracker-2012/Tests/All
+++ b/sql/test/BugTracker-2012/Tests/All
@@ -69,3 +69,4 @@ null_except_null.Bug-3040
 create_index_update.Bug-3098.sql
 algebra_find.Bug-2728
 row_number_does_not_work_in_complex_query.Bug-2805
+day-of-month-localization.Bug-2962
diff --git 
a/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.SQL.py 
b/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.SQL.py
new file mode 100644
--- /dev/null
+++ b/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.SQL.py
@@ -0,0 +1,13 @@
+import os, sys, time
+try:
+    from MonetDBtesting import process
+except ImportError:
+    import process
+
+c = process.client('sql',
+                   stdout = process.PIPE, stderr = process.PIPE, stdin = 
process.PIPE)
+c.stdin.write("set time zone interval -'%d:00' hour to minute;\n" % 
(time.gmtime().tm_hour+1));
+c.stdin.write("SELECT EXTRACT(DAY FROM CURRENT_TIMESTAMP) <> %d;\n" % 
(time.gmtime().tm_mday));
+out, err = c.communicate()
+sys.stdout.write(out)
+sys.stderr.write(err)
diff --git 
a/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.err 
b/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.err
new file mode 100644
--- /dev/null
+++ 
b/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.err
@@ -0,0 +1,34 @@
+stderr of test 'day-of-month-localization.Bug-2962` in directory 
'test/BugTracker-2012` itself:
+
+
+# 13:31:23 >  
+# 13:31:23 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=31302" "--set" "monet_prompt=" "--trace" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/Users/holger/Applications/MonetDB.app/Contents/var/MonetDB/mTests_test_BugTracker-2012"
 "--set" "mal_listing=0"
+# 13:31:23 >  
+
+# builtin opt  gdk_dbpath = 
/Users/holger/Applications/MonetDB.app/Contents/var/monetdb5/dbfarm/demo
+# builtin opt  gdk_debug = 0
+# builtin opt  gdk_vmtrim = yes
+# 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 = 31302
+# cmdline opt  monet_prompt = 
+# cmdline opt  mal_listing = 2
+# cmdline opt  gdk_dbpath = 
/Users/holger/Applications/MonetDB.app/Contents/var/MonetDB/mTests_test_BugTracker-2012
+# cmdline opt  mal_listing = 0
+
+# 13:31:23 >  
+# 13:31:23 >  "/usr/bin/python" "day-of-month-localization.Bug-2962.SQL.py" 
"day-of-month-localization.Bug-2962"
+# 13:31:23 >  
+
+
+# 13:31:23 >  
+# 13:31:23 >  "Done."
+# 13:31:23 >  
+
diff --git 
a/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.out 
b/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.out
new file mode 100644
--- /dev/null
+++ 
b/sql/test/BugTracker-2012/Tests/day-of-month-localization.Bug-2962.stable.out
@@ -0,0 +1,59 @@
+stdout of test 'day-of-month-localization.Bug-2962` in directory 
'test/BugTracker-2012` itself:
+
+
+# 13:31:23 >  
+# 13:31:23 >  "mserver5" "--debug=10" "--set" "gdk_nr_threads=0" "--set" 
"mapi_open=true" "--set" "mapi_port=31302" "--set" "monet_prompt=" "--trace" 
"--forcemito" "--set" "mal_listing=2" 
"--dbpath=/Users/holger/Applications/MonetDB.app/Contents/var/MonetDB/mTests_test_BugTracker-2012"
 "--set" "mal_listing=0"
+# 13:31:23 >  
+
+# MonetDB 5 server v11.14.0
+# This is an unreleased version
+# Serving database 'mTests_test_BugTracker-2012', using 4 threads
+# Compiled for x86_64-apple-darwin12.2.1/64bit with 64bit OIDs dynamically 
linked
+# Found 8.000 GiB available main-memory.
+# Copyright (c) 1993-July 2008 CWI.
+# Copyright (c) August 2008-2012 MonetDB B.V., all rights reserved
+# Visit http://www.monetdb.org/ for further information
+# Listening for connection requests on 
mapi:monetdb://dhcp-89.eduroam.cwi.nl:31302/
+# MonetDB/SQL module loaded
+
+Ready.
+# SQL catalog created, loading sql scripts once
+# loading sql script: 09_like.sql
+# loading sql script: 10_math.sql
+# loading sql script: 11_times.sql
+# loading sql script: 12_url.sql
+# loading sql script: 13_date.sql
+# loading sql script: 14_inet.sql
+# loading sql script: 15_history.sql
+# loading sql script: 16_tracelog.sql
+# loading sql script: 17_compress.sql
+# loading sql script: 18_dictionary.sql
+# loading sql script: 19_cluster.sql
+# loading sql script: 20_vacuum.sql
+# loading sql script: 21_dependency_functions.sql
+# loading sql script: 22_clients.sql
+# loading sql script: 23_skyserver.sql
+# loading sql script: 24_zorder.sql
+# loading sql script: 25_debug.sql
+# loading sql script: 39_analytics.sql
+# loading sql script: 75_storagemodel.sql
+# loading sql script: 80_udf.sql
+# loading sql script: 91_bwd.sql
+# loading sql script: 99_system.sql
+
+# 14:24:54 >  
+# 14:24:54 >  "/usr/bin/python" "day-of-month-localization.Bug-2962.SQL.py" 
"day-of-month-localization.Bug-2962"
+# 14:24:54 >  
+
+#set time zone interval -'14:00' hour to minute;
+#SELECT EXTRACT(DAY FROM CURRENT_TIMESTAMP) <> 27;
+% . # table_name
+% current_timestamp # name
+% boolean # type
+% 5 # length
+[ true ]
+
+# 14:24:54 >  
+# 14:24:54 >  "Done."
+# 14:24:54 >  
+
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list

Reply via email to