~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/sql_plugin.cc

  • Committer: Brian Aker
  • Date: 2009-03-20 22:16:09 UTC
  • mfrom: (937.2.14 sparc)
  • Revision ID: brian@tangent.org-20090320221609-8daq0o52mnm23knn
Merge from Stewart.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1649
1649
 
1650
1650
  switch (flags & PLUGIN_VAR_TYPEMASK) {
1651
1651
  case PLUGIN_VAR_BOOL:
1652
 
    size= sizeof(bool);
 
1652
    size= ALIGN_SIZE(sizeof(bool));
1653
1653
    break;
1654
1654
  case PLUGIN_VAR_INT:
1655
 
    size= sizeof(int);
 
1655
    size= ALIGN_SIZE(sizeof(int));
1656
1656
    break;
1657
1657
  case PLUGIN_VAR_LONG:
1658
1658
  case PLUGIN_VAR_ENUM:
1659
 
    size= sizeof(long);
 
1659
    size= ALIGN_SIZE(sizeof(long));
1660
1660
    break;
1661
1661
  case PLUGIN_VAR_LONGLONG:
1662
1662
  case PLUGIN_VAR_SET:
1663
 
    size= sizeof(uint64_t);
 
1663
    size= ALIGN_SIZE(sizeof(uint64_t));
1664
1664
    break;
1665
1665
  case PLUGIN_VAR_STR:
1666
 
    size= sizeof(char*);
 
1666
    size= ALIGN_SIZE(sizeof(char*));
1667
1667
    break;
1668
1668
  default:
1669
1669
    assert(0);