~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/subselect3.test

  • Committer: Monty Taylor
  • Date: 2010-04-15 19:14:53 UTC
  • mto: This revision was merged to the branch mainline in revision 1476.
  • Revision ID: mordred@inaugust.com-20100415191453-ril2x8qdo78fny9w
Replaced test_authz with a plugin implementing a hard-coded simple
multi-tennancy policy. The policy describes:
- A root user exists which can do anything
- A user may only see a schema that is named the same has his user name
- A user may see data_dictionary and information_schema (data_dictionary
  required for show databases to work)

This way, we can more clearly test the results of the authorization
interface while providing an optional plugin that is actually useful to some
human.

Show diffs side-by-side

added added

removed removed

Lines of Context:
618
618
 
619
619
create table t1 (a int, b decimal(13, 3)); 
620
620
insert into t1 values (1, 0.123);
621
 
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
622
 
eval select a, (select max(b) from t1) into outfile "$DRIZZLETEST_VARDIR/subselect.out.file.1" from t1;
 
621
select a, (select max(b) from t1) into outfile "subselect.out.file.1" from t1;
623
622
delete from t1;
624
 
--replace_result $DRIZZLETEST_VARDIR DRIZZLETEST_VARDIR
625
 
eval load data infile "$DRIZZLETEST_VARDIR/subselect.out.file.1" into table t1;
 
623
load data infile "subselect.out.file.1" into table t1;
626
624
select * from t1;
627
625
drop table t1;
628
626