~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/select_in_null.test

  • Committer: Mats Kindahl
  • Date: 2008-08-26 07:32:59 UTC
  • mto: (489.1.2 codestyle)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: mats@mysql.com-20080826073259-9k4evtajgldgolli
Replaced use of thd_proc_info() macro with calls to
set_proc_info() and get_proc_info() internally.  Introduced
functions set_thd_proc_info() and get_thd_proc_info() for
external users, i.e., plug-ins.

The set_thd_proc_info() accepted callers info that can be used to
print debug output, but the information was not used. The return
value was changed to void and the old value is not fetched any
more. To be able to get the value of proc_info for external
users, the function get_thd_proc_info() was introduced.

The thd_proc_info() macro called set_thd_proc_info() but almost
never used the return value of set_thd_proc_info() so the macro
was replaced with a call of THD::set_proc_info().

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# SELECT IN () with NULL in IN changes query plan
3
 
#
4
 
# http://bugs.mysql.com/bug.php?id=44139
5
 
6
 
 
7
 
drop table if exists foo;
8
 
 
9
 
create temporary table foo (
10
 
        a int not null auto_increment,
11
 
        b int,
12
 
        primary key( a )
13
 
) engine=myisam;
14
 
 
15
 
begin;
16
 
insert into foo( b ) values (1),(1),(1),(1),(1);
17
 
create table t2 as select * from foo;
18
 
insert into foo( b ) select b from t2;
19
 
drop table t2;
20
 
create table t2 as select * from foo;
21
 
insert into foo( b ) select b from t2;
22
 
drop table t2;
23
 
create table t2 as select * from foo;
24
 
insert into foo( b ) select b from t2;
25
 
drop table t2;
26
 
create table t2 as select * from foo;
27
 
insert into foo( b ) select b from t2;
28
 
drop table t2;
29
 
create table t2 as select * from foo;
30
 
insert into foo( b ) select b from t2;
31
 
drop table t2;
32
 
commit;
33
 
 
34
 
explain select * from foo where a in (160000, 160001, 160002);
35
 
explain select * from foo where a in (null, 160000, 160001, 160002);
36
 
DROP TABLE foo;