~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-04-25 19:24:49 UTC
  • mto: (997.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 1003.
  • Revision ID: mordred@inaugust.com-20090425192449-0htujbt2r9jzupn5
Moved heap.

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
 
#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