~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/field/boolean.cc

  • Committer: Brian Aker
  • Date: 2011-01-18 00:26:36 UTC
  • mfrom: (2085.2.3 alter-table)
  • Revision ID: brian@tangent.org-20110118002636-mfyvnv58auvqr5gc
First pass on fix for UTF-8, this checks all of our schema names.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
      return 1; // invalid
90
90
    }
91
91
  }
92
 
  else if ((length == 5) and (strcasecmp(from, "FALSE") == 0))
93
 
  {
94
 
    setFalse();
95
 
  }
96
 
  if ((length == 4) and (strcasecmp(from, "TRUE") == 0))
97
 
  {
98
 
    setTrue();
99
 
  }
100
 
  else if ((length == 5) and (strcasecmp(from, "FALSE") == 0))
101
 
  {
102
 
    setFalse();
103
 
  }
104
 
  else if ((length == 3) and (strcasecmp(from, "YES") == 0))
105
 
  {
106
 
    setTrue();
107
 
  }
108
 
  else if ((length == 2) and (strcasecmp(from, "NO") == 0))
 
92
  else if ((length == 5) and (my_strcasecmp(system_charset_info, from, "FALSE") == 0))
 
93
  {
 
94
    setFalse();
 
95
  }
 
96
  if ((length == 4) and (my_strcasecmp(system_charset_info, from, "TRUE") == 0))
 
97
  {
 
98
    setTrue();
 
99
  }
 
100
  else if ((length == 5) and (my_strcasecmp(system_charset_info, from, "FALSE") == 0))
 
101
  {
 
102
    setFalse();
 
103
  }
 
104
  else if ((length == 3) and (my_strcasecmp(system_charset_info, from, "YES") == 0))
 
105
  {
 
106
    setTrue();
 
107
  }
 
108
  else if ((length == 2) and (my_strcasecmp(system_charset_info, from, "NO") == 0))
109
109
  {
110
110
    setFalse();
111
111
  }