~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to server/sql_plugin.cc

  • Committer: Brian Aker
  • Date: 2008-07-20 07:36:57 UTC
  • Revision ID: brian@tangent.org-20080720073657-qrzqnfu31mut8vjd
my_bool...

Show diffs side-by-side

added added

removed removed

Lines of Context:
1537
1537
                             struct st_mysql_sys_var *var __attribute__((__unused__)),
1538
1538
                             void *tgt, const void *save)
1539
1539
{
1540
 
  *(my_bool *) tgt= *(int *) save ? 1 : 0;
 
1540
  *(bool *) tgt= *(int *) save ? 1 : 0;
1541
1541
}
1542
1542
 
1543
1543
 
1675
1675
 
1676
1676
  switch (flags & PLUGIN_VAR_TYPEMASK) {
1677
1677
  case PLUGIN_VAR_BOOL:
1678
 
    size= sizeof(my_bool);
 
1678
    size= sizeof(bool);
1679
1679
    break;
1680
1680
  case PLUGIN_VAR_INT:
1681
1681
    size= sizeof(int);