~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/outer_ref.cc

  • Committer: Lee
  • Date: 2009-01-01 03:07:33 UTC
  • mto: (758.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 759.
  • Revision ID: lbieber@lbieber-desktop-20090101030733-fb411b55f07vij8q
more header file cleanup

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>
21
 
 
 
20
#include <drizzled/server_includes.h>
 
21
#include CSTDINT_H
22
22
#include <drizzled/item/uint.h>
23
23
#include <drizzled/item/outer_ref.h>
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
/*
29
26
  Prepare referenced outer field then call usual Item_direct_ref::fix_fields
30
27
 
52
49
  return err;
53
50
}
54
51
 
55
 
void Item_outer_ref::fix_after_pullout(Select_Lex *new_parent,
56
 
                                       Item **ref_item)
 
52
void Item_outer_ref::fix_after_pullout(st_select_lex *new_parent, Item **ref)
57
53
{
58
54
  if (depended_from == new_parent)
59
55
  {
60
 
    *ref_item= outer_ref;
61
 
    outer_ref->fix_after_pullout(new_parent, ref_item);
 
56
    *ref= outer_ref;
 
57
    outer_ref->fix_after_pullout(new_parent, ref);
62
58
  }
63
59
}
64
60
 
65
61
 
66
 
} /* namespace drizzled */
 
62