~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to mysys/charset.c

  • Committer: Brian Aker
  • Date: 2008-08-01 06:48:10 UTC
  • mfrom: (236.1.38 codestyle)
  • Revision ID: brian@tangent.org-20080801064810-5qhx3x6o099uf14r
Merging Monty

Show diffs side-by-side

added added

removed removed

Lines of Context:
31
31
    - Setting server default character set
32
32
*/
33
33
 
34
 
bool my_charset_same(CHARSET_INFO *cs1, CHARSET_INFO *cs2)
 
34
bool my_charset_same(const CHARSET_INFO *cs1, const CHARSET_INFO *cs2)
35
35
{
36
36
  return ((cs1 == cs2) || !strcmp(cs1->csname,cs2->csname));
37
37
}
696
696
    #           The length of the escaped string
697
697
*/
698
698
 
699
 
size_t escape_string_for_drizzle(CHARSET_INFO *charset_info,
 
699
size_t escape_string_for_drizzle(const CHARSET_INFO *charset_info,
700
700
                                 char *to, size_t to_length,
701
701
                                 const char *from, size_t length)
702
702
{
836
836
    >=0         The length of the escaped string
837
837
*/
838
838
 
839
 
size_t escape_quotes_for_drizzle(CHARSET_INFO *charset_info,
 
839
size_t escape_quotes_for_drizzle(const CHARSET_INFO *charset_info,
840
840
                                 char *to, size_t to_length,
841
841
                                 const char *from, size_t length)
842
842
{