~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/ref.cc

  • Committer: Padraig O'Sullivan
  • Date: 2009-07-30 02:39:13 UTC
  • mto: (1115.3.11 captain)
  • mto: This revision was merged to the branch mainline in revision 1121.
  • Revision ID: osullivan.padraig@gmail.com-20090730023913-o2zuocp32l6btnc2
Removing references to MY_BITMAP throughout the code base and updating calls
to MyBitmap in various places to use the new interface.

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"
21
 
 
22
 
#include "drizzled/session.h"
23
 
#include "drizzled/error.h"
24
 
#include "drizzled/show.h"
25
 
#include "drizzled/item/ref.h"
26
 
#include "drizzled/plugin/client.h"
27
 
#include "drizzled/item/sum.h"
28
 
 
29
 
namespace drizzled
30
 
{
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
 
22
#include <drizzled/session.h>
 
23
#include <drizzled/error.h>
 
24
#include <drizzled/show.h>
 
25
#include <drizzled/item/ref.h>
31
26
 
32
27
Item_ref::Item_ref(Name_resolution_context *context_arg,
33
28
                   Item **item, const char *table_name_arg,
200
195
                                           outer_context->
201
196
                                             last_name_resolution_table,
202
197
                                           reference,
203
 
                                           IGNORE_EXCEPT_NON_UNIQUE, true);
 
198
                                           IGNORE_EXCEPT_NON_UNIQUE,
 
199
                                           true, true);
204
200
          if (! from_field)
205
201
            goto error;
206
202
          if (from_field == view_ref_found)
383
379
}
384
380
 
385
381
 
386
 
bool Item_ref::send(plugin::Client *client, String *tmp)
 
382
bool Item_ref::send(Protocol *prot, String *tmp)
387
383
{
388
384
  if (result_field)
389
 
    return client->store(result_field);
390
 
  return (*ref)->send(client, tmp);
 
385
    return prot->store(result_field);
 
386
  return (*ref)->send(prot, tmp);
391
387
}
392
388
 
393
389
 
576
572
    depended_from= NULL;
577
573
  }
578
574
}
579
 
 
580
 
} /* namespace drizzled */