~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/str/binary.h

  • Committer: Monty Taylor
  • Date: 2008-11-16 06:29:53 UTC
  • mto: (584.1.9 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116062953-ivdltjmfe009b5fr
Moved stuff into item/

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_FUNCTION_STR_BINARY_H
21
 
#define DRIZZLED_FUNCTION_STR_BINARY_H
22
 
 
23
 
#include <drizzled/function/str/strfunc.h>
24
 
 
25
 
namespace drizzled
26
 
{
 
20
#ifndef DRIZZLED_FUNCTIONS_STR_BINARY_H
 
21
#define DRIZZLED_FUNCTIONS_STR_BINARY_H
 
22
 
 
23
#include <drizzled/functions/str/strfunc.h> 
27
24
 
28
25
class Item_func_binary :public Item_str_func
29
26
{
42
39
  {
43
40
    collation.set(&my_charset_bin);
44
41
    max_length=args[0]->max_length;
45
 
  }
 
42
  } 
46
43
  virtual void print(String *str, enum_query_type query_type);
47
44
  const char *func_name() const { return "cast_as_binary"; }
48
45
};
49
46
 
50
 
} /* namespace drizzled */
51
 
 
52
 
#endif /* DRIZZLED_FUNCTION_STR_BINARY_H */
 
47
#endif /* DRIZZLED_FUNCTIONS_STR_BINARY_H */