~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/session.cc

  • Committer: Olaf van der Spek
  • Date: 2011-10-24 14:41:40 UTC
  • mto: This revision was merged to the branch mainline in revision 2447.
  • Revision ID: olafvdspek@gmail.com-20111024144140-di0wudx1ujbi4a7s
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
1163
1163
        const charset_info_st * const res_charset= res->charset();
1164
1164
        const charset_info_st * const character_set_client= default_charset_info;
1165
1165
 
1166
 
        bool check_second_byte= (res_charset == &my_charset_bin) &&
1167
 
          character_set_client->escape_with_backslash_is_dangerous;
1168
 
        assert(character_set_client->mbmaxlen == 2 ||
1169
 
               !character_set_client->escape_with_backslash_is_dangerous);
 
1166
        bool check_second_byte= false;
 
1167
        assert(character_set_client->mbmaxlen == 2 || not false);
1170
1168
        for (start=pos=(char*) res->ptr(),end=pos+used_length ;
1171
1169
             pos != end ;
1172
1170
             pos++)