~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to tests/include/weight_string.inc

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-21 01:02:23 UTC
  • mto: (960.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 961.
  • Revision ID: osullivan.padraig@gmail.com-20090321010223-j8cph7eeyt1u3xol
Fixed function object to ensure it correctly returns a boolean type since
memcmp returns an integer. Added some more comments.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
select hex(weight_string('a'));
 
2
select hex(weight_string('A'));
 
3
select hex(weight_string('abc'));
 
4
select hex(weight_string('abc' as char(2)));
 
5
select hex(weight_string('abc' as char(3)));
 
6
select hex(weight_string('abc' as char(5)));