~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/str/set_collation.cc

  • Committer: Monty Taylor
  • Date: 2009-03-02 23:14:32 UTC
  • mto: This revision was merged to the branch mainline in revision 910.
  • Revision ID: mordred@inaugust.com-20090302231432-i35xehp7uzo6hjjw
Updated build system to use new version numbering. Just remember to run ./config/autorun.sh before running make distcheck for release and all should be peachy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include <config.h>
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
21
22
#include <drizzled/function/str/set_collation.h>
22
23
#include <drizzled/error.h>
23
 
#include <drizzled/charset.h>
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
static const char *binary_keyword= "BINARY";
29
24
 
30
25
String *Item_func_set_collation::val_str(String *str)
31
26
{
61
56
             colname, args[0]->collation.collation->csname);
62
57
    return;
63
58
  }
64
 
  collation.set(set_collation, DERIVATION_EXPLICIT);
 
59
  collation.set(set_collation, DERIVATION_EXPLICIT,
 
60
                args[0]->collation.repertoire);
65
61
  max_length= args[0]->max_length;
66
62
}
67
63
 
96
92
  str->append(')');
97
93
}
98
94
 
99
 
} /* namespace drizzled */
100
95
 
101
96