MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
make_sortkey_unittest::MakeSortKeyTest Class Reference
Collaboration diagram for make_sortkey_unittest::MakeSortKeyTest:

Protected Member Functions

virtual void SetUp ()
virtual void TearDown ()
THD * thd ()
void verify_buff (uint length)

Protected Attributes

Server_initializer initializer
Sort_param m_sort_param
SORT_FIELD m_sort_fields [2]
bool m_multi_byte_charset
uchar m_ref_buff [4]
uchar m_buff [100]
uchar * m_to

Detailed Description

Test that sortlength() and make_sortkey() agree on what to do: i.e. that there is no buffer underwrite/overwrite in make_sortkey() if sortlength() has set a very small size.

We allocate a buffer, fill it with 'a's and then tell make_sortkey() to put it's result somewhere in the middle. The buffer should be unchanged outside of the area determined by sortlength.

Definition at line 42 of file make_sortkey-t.cc.


The documentation for this class was generated from the following file: