~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/t/create_schema_options.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
 
--error ER_UNKNOWN_SCHEMA_OPTION
2
 
CREATE DATABASE foo unknown_key=value;
3
 
--error ER_UNKNOWN_SCHEMA_OPTION
4
 
CREATE DATABASE foo unknown_key=value, anotheR_unknown_key;
5
 
SHOW WARNINGS;
6
 
--error ER_UNKNOWN_SCHEMA_OPTION
7
 
CREATE DATABASE foo unknown_key=42;
8
 
 
9
 
--error ER_UNKNOWN_SCHEMA_OPTION
10
 
CREATE DATABASE foo unknown_key;
11
 
 
12
 
# These will require us to define schema engines
13
 
# in a more concrete fashion (aka which engine owns what)
14
 
#CREATE DATABASE foo super_secret_extra_database_option;
15
 
#--echo schema_reader:
16
 
#--exec ../drizzled/message/schema_reader var/master-data/foo/db.opt
17
 
#DROP DATABASE foo;
18
 
#
19
 
#CREATE DATABASE foo super_secret_extra_database_option=42;
20
 
#--echo schema_reader:
21
 
#--exec ../drizzled/message/schema_reader var/master-data/foo/db.opt
22
 
#DROP DATABASE foo;
23
 
#
24
 
#CREATE DATABASE foo super_secret_extra_database_option='Hello World!';
25
 
#--echo schema_reader:
26
 
#--exec ../drizzled/message/schema_reader var/master-data/foo/db.opt
27
 
#DROP DATABASE foo;
28