~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/protocol.cc

  • Committer: Brian Aker
  • Date: 2008-11-18 23:19:19 UTC
  • mfrom: (584.1.16 devel)
  • Revision ID: brian@tangent.org-20081118231919-w9sr347dtiwhccml
Merge of Monty's work.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <drizzled/error.h>
24
24
#include <drizzled/sql_state.h>
25
25
#include <libdrizzle/pack.h>
 
26
#include <drizzled/protocol.h>
 
27
#include <drizzled/session.h>
26
28
 
27
29
static const unsigned int PACKET_BUFFER_EXTRA_ALLOC= 1024;
28
30
/* Declared non-static only because of the embedded library. */
630
632
}
631
633
 
632
634
 
 
635
bool Protocol::store(String *str)
 
636
{
 
637
  return store((char*) str->ptr(), str->length(), str->charset());
 
638
}
 
639
 
 
640
void Protocol::free()
 
641
{
 
642
  packet->free();
 
643
}
 
644
 
 
645
 
633
646
/****************************************************************************
634
647
  Functions to handle the simple (default) protocol where everything is
635
648
  This protocol is the one that is used by default between the MySQL server