any tests that use data_dictionary should call create schema
Bug #522000 reported by
Joe Daly
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Drizzle |
Fix Released
|
Medium
|
Stewart Smith | ||
Cherry |
Fix Released
|
Medium
|
Stewart Smith |
Bug Description
Any tests that use the data_dictionary should include a block in them to create it. If you run the tests in a different order they will fail in some cases.
--disable_warnings
create schema if not exists data_dictionary;
--enable_warnings
Related branches
lp:~stewart/drizzle/schema-dictionary-test-fix-bug550614
- Monty Taylor: Approve
-
Diff: 27 lines (+3/-1)2 files modifiedplugin/schema_dictionary/tests/r/show.result (+2/-1)
plugin/schema_dictionary/tests/t/show.test (+1/-0)
Changed in drizzle: | |
status: | New → Fix Committed |
importance: | Undecided → Medium |
assignee: | nobody → Stewart Smith (stewart-flamingspork) |
milestone: | none → 2010-03-29 |
To post a comment you must log in.
On Mon, Feb 15, 2010 at 03:50:12AM -0000, Joe Daly wrote:
> Any tests that use the data_dictionary should include a block in them to
> create it. If you run the tests in a different order they will fail in
> some cases.
>
> --disable_warnings
> create schema if not exists data_dictionary;
> --enable_warnings
I think instead that plugins should be able to say that a db exists.
this solves the information_schema special case, the data_dictionary
special case alongside any other virtual databases that exist.
(i did this ages ago in a long since abandoned branch.. and it worked
great :)
--
Stewart Smith