~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/r/grant.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-05-22 08:59:41 UTC
  • mto: (2.1.3 sid) (1.2.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 4.
  • Revision ID: james.westby@ubuntu.com-20100522085941-4x62clk1ovyip4m5
Tags: upstream-5.1.47
ImportĀ upstreamĀ versionĀ 5.1.47

Show diffs side-by-side

added added

removed removed

Lines of Context:
1413
1413
DROP USER 'user1'@'localhost';
1414
1414
DROP USER 'user2';
1415
1415
DROP DATABASE db1;
 
1416
CREATE DATABASE db1;
 
1417
CREATE DATABASE db2;
 
1418
GRANT SELECT ON db1.* to 'testbug'@localhost;
 
1419
USE db2;
 
1420
CREATE TABLE t1 (a INT);
 
1421
USE test;
 
1422
SELECT * FROM `../db2/tb2`;
 
1423
ERROR 42S02: Table 'db1.../db2/tb2' doesn't exist
 
1424
SELECT * FROM `../db2`.tb2;
 
1425
ERROR 42000: SELECT command denied to user 'testbug'@'localhost' for table 'tb2'
 
1426
SELECT * FROM `#mysql50#/../db2/tb2`;
 
1427
ERROR 42S02: Table 'db1.#mysql50#/../db2/tb2' doesn't exist
 
1428
DROP USER 'testbug'@localhost;
 
1429
DROP TABLE db2.t1;
 
1430
DROP DATABASE db1;
 
1431
DROP DATABASE db2;