Update of /cvsroot/monetdb/sql/src/test/bugs/Tests
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv25902
Modified Files:
Tag: SQL_2-24
All
Added Files:
Tag: SQL_2-24
order_limit_offset_bug.sql order_limit_offset_bug.stable.err
order_limit_offset_bug.stable.out
Log Message:
test script for bug in order/limit/offset handling
U All
Index: All
===================================================================
RCS file: /cvsroot/monetdb/sql/src/test/bugs/Tests/All,v
retrieving revision 1.112.2.3
retrieving revision 1.112.2.4
diff -u -d -r1.112.2.3 -r1.112.2.4
--- All 9 Jun 2008 08:44:04 -0000 1.112.2.3
+++ All 11 Jun 2008 15:44:50 -0000 1.112.2.4
@@ -90,3 +90,4 @@
select_into
distinct_count
div_zero_bug
+order_limit_offset_bug
--- NEW FILE: order_limit_offset_bug.stable.err ---
stderr of test 'order_limit_offset_bug` in directory 'src/test/bugs` itself:
# 17:38:03 >
# 17:38:03 > mserver5
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10
--set
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
--set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"
--set "sql_logdir=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs"
--set mapi_open=true --set xrpc_open=true --set mapi_port=36169 --set
xrpc_port=43434 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs"
--set sql_debug=16384 --set xquery_backend=algebra --set mal_listing=0
"--dbinit= include sql;" ; echo ; echo Over..
# 17:38:03 >
# builtin opt gdk_arch = 64bitx86_64-unknown-linux-gnu
# builtin opt gdk_version = 1.24.0
# builtin opt monet_pid = 7474
# builtin opt prefix = /ufs/niels/scratch/rc/Linux-x86_64
# builtin opt exec_prefix = ${prefix}
# builtin opt gdk_dbname = tst
# builtin opt gdk_dbfarm = ${prefix}/var/MonetDB
# builtin opt gdk_debug = 8
# builtin opt gdk_mem_bigsize = 262144
# builtin opt gdk_alloc_map = yes
# builtin opt gdk_mem_pagebits = 14
# builtin opt gdk_vmtrim = yes
# builtin opt monet_admin = adm
# builtin opt monet_prompt = >
# builtin opt monet_welcome = yes
# builtin opt monet_mod_path =
${exec_prefix}/lib/MonetDB:${exec_prefix}/lib/bin
# builtin opt monet_daemon = yes
# builtin opt host = localhost
# builtin opt mapi_port = 50000
# builtin opt mapi_noheaders = no
# builtin opt mapi_debug = 0
# builtin opt mapi_clients = 2
# builtin opt sql_debug = 0
# builtin opt sql_logdir = ${prefix}/var/MonetDB/sql_logs
# builtin opt xquery_logdir = ${prefix}/var/MonetDB/xquery_logs
# builtin opt standoff_ns = http://monetdb.cwi.nl/standoff
# builtin opt standoff_start = start
# builtin opt standoff_end = end
# config opt prefix = /ufs/niels/scratch/rc/Linux-x86_64
# config opt config = ${prefix}/etc/monetdb5.conf
# config opt prefix = /ufs/niels/scratch/rc/Linux-x86_64
# config opt exec_prefix = ${prefix}
# config opt gdk_dbfarm = ${prefix}/var/MonetDB5/dbfarm
# config opt gdk_dbname = demo
# config opt gdk_alloc_map = no
# config opt gdk_embedded = no
# config opt gdk_debug = 0
# config opt monet_mod_path =
${exec_prefix}/lib/MonetDB5:${exec_prefix}/lib/MonetDB5/lib:${exec_prefix}/lib/MonetDB5/bin
# config opt monet_daemon = no
# config opt monet_welcome = yes
# config opt mero_msglog = ${prefix}/var/log/merovingian.log
# config opt mero_errlog = ${prefix}/var/log/merovingian.log
# config opt mero_timeinterval = 600
# config opt mero_pidfile = ${prefix}/var/run/merovingian.pid
# config opt mero_exittimeout = 7
# config opt mero_doproxy = yes
# config opt mero_discoveryttl = 600
# config opt mal_init = ${exec_prefix}/lib/MonetDB5/mal_init.mal
# config opt mal_listing = 15
# config opt checkpoint_dir = ${prefix}/var/MonetDB5/chkpnt
# config opt mapi_port = 50000
# config opt mapi_open = false
# config opt sql_debug = 0
# config opt sql_logdir = ${prefix}/var/MonetDB5/sql_logs
# config opt sql_init = ${exec_prefix}/lib/MonetDB5/sql_init.sql
# cmdline opt config = /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf
# cmdline opt monet_mod_path =
/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin
# cmdline opt gdk_dbfarm =
/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm
# cmdline opt sql_logdir =
/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs
# cmdline opt mapi_open = true
# cmdline opt xrpc_open = true
# cmdline opt mapi_port = 36169
# cmdline opt xrpc_port = 43434
# cmdline opt monet_prompt =
# cmdline opt gdk_dbname = mTests_src_test_bugs
# cmdline opt sql_debug = 16384
# cmdline opt xquery_backend = algebra
# cmdline opt mal_listing = 0
# cmdline opt gdk_debug = 10
#warning: please don't forget to set your vault key!
#(see /ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf)
# 17:38:03 >
# 17:38:03 > mclient -lsql -umonetdb -Pmonetdb --host=alf --port=36169 -G
# 17:38:03 >
# 17:38:03 >
# 17:38:03 > Done.
# 17:38:03 >
--- NEW FILE: order_limit_offset_bug.sql ---
START TRANSACTION;
CREATE SEQUENCE "seq_3978" AS INTEGER;
CREATE TABLE "sys"."entrants" (
"id" int NOT NULL DEFAULT next value for "sys"."seq_3978",
"name" varchar(255) NOT NULL,
"course_id" int NOT NULL,
CONSTRAINT "entrants_id_pkey" PRIMARY KEY ("id")
);
COPY 3 RECORDS INTO "entrants" FROM stdin USING DELIMITERS '\t';
3 "Java Lover" 2
2 "Ruby Guru" 1
1 "Ruby Developer" 1
COMMIT;
SELECT * FROM "entrants" ORDER BY id ASC;
SELECT * FROM "entrants" ORDER BY id ASC LIMIT 2 OFFSET 2;
drop table entrants;
--drop sequence "seq_3978";
START TRANSACTION;
CREATE SEQUENCE "seq_3901" AS INTEGER;
CREATE TABLE "sys"."developers" (
"id" int NOT NULL DEFAULT next value for "sys"."seq_3901",
"name" varchar(100),
"salary" int DEFAULT 70000,
"created_at" timestamp(7),
"updated_at" timestamp(7),
CONSTRAINT "developers_id_pkey" PRIMARY KEY ("id")
);
COPY 11 RECORDS INTO "developers" FROM stdin USING DELIMITERS '\t';
5 "fixture_5" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
6 "fixture_6" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
7 "fixture_7" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
11 "Jamis" 9000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
8 "fixture_8" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
9 "fixture_9" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
2 "Jamis" 150000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
10 "fixture_10" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
3 "fixture_3" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
1 "David" 80000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
4 "fixture_4" 100000 2008-06-10 19:13:40.000000 2008-06-10
19:13:40.000000
COMMIT;
SELECT * FROM "developers" WHERE (salary = 100000) ORDER BY id DESC;
SELECT * FROM "developers" WHERE (salary = 100000) ORDER BY id DESC LIMIT 3
OFFSET 7;
drop table developers;
--drop sequence "seq_3901";
--- NEW FILE: order_limit_offset_bug.stable.out ---
stdout of test 'order_limit_offset_bug` in directory 'src/test/bugs` itself:
# 17:38:03 >
# 17:38:03 > mserver5
"--config=/ufs/niels/scratch/rc/Linux-x86_64/etc/monetdb5.conf" --debug=10
--set
"monet_mod_path=/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/lib:/ufs/niels/scratch/rc/Linux-x86_64/lib/MonetDB5/bin"
--set "gdk_dbfarm=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/dbfarm"
--set "sql_logdir=/ufs/niels/scratch/rc/Linux-x86_64/var/MonetDB5/sql_logs"
--set mapi_open=true --set xrpc_open=true --set mapi_port=36169 --set
xrpc_port=43434 --set monet_prompt= --trace "--dbname=mTests_src_test_bugs"
--set sql_debug=16384 --set xquery_backend=algebra --set mal_listing=0
"--dbinit= include sql;" ; echo ; echo Over..
# 17:38:03 >
# MonetDB server v5.6.0, based on kernel v1.24.0
# Serving database 'mTests_src_test_bugs'
# Compiled for x86_64-unknown-linux-gnu/64bit with 64bit OIDs dynamically linked
# Copyright (c) 1993-2008 CWI, all rights reserved
# Visit http://monetdb.cwi.nl/ for further information
# Listening for connection requests on mapi:monetdb://alf.ins.cwi.nl:36169/
# MonetDB/SQL module v2.24.0 loaded
Ready.
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
# falling back to direct mode
#function user.main():void;
# clients.quit();
#end main;
Over..
# 17:38:03 >
# 17:38:03 > mclient -lsql -umonetdb -Pmonetdb --host=alf --port=36169 -G
# 17:38:03 >
[ 3 ]
% sys.entrants, sys.entrants, sys.entrants # table_name
% id, name, course_id # name
% int, varchar, int # type
% 1, 14, 1 # length
[ 1, "Ruby Developer", 1 ]
[ 2, "Ruby Guru", 1 ]
[ 3, "Java Lover", 2 ]
% sys.entrants, sys.entrants, sys.entrants # table_name
% id, name, course_id # name
% int, varchar, int # type
% 1, 10, 1 # length
[ 3, "Java Lover", 2 ]
[ 11 ]
% sys.developers, sys.developers, sys.developers, sys.developers,
sys.developers # table_name
% id, name, salary, created_at, updated_at # name
% int, varchar, int, timestamp, timestamp # type
% 2, 10, 6, 26, 26 # length
[ 10, "fixture_10", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
[ 9, "fixture_9", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
[ 8, "fixture_8", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
[ 7, "fixture_7", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
[ 6, "fixture_6", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
[ 5, "fixture_5", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
[ 4, "fixture_4", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
[ 3, "fixture_3", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
% sys.developers, sys.developers, sys.developers, sys.developers,
sys.developers # table_name
% id, name, salary, created_at, updated_at # name
% int, varchar, int, timestamp, timestamp # type
% 1, 9, 6, 26, 26 # length
[ 3, "fixture_3", 100000, 2008-06-10 19:13:40.000000, 2008-06-10
19:13:40.000000 ]
# 17:38:03 >
# 17:38:03 > Done.
# 17:38:03 >
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Monetdb-sql-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-sql-checkins