~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/item/int_with_ref.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/item/uint.h>
23
23
#include <drizzled/item/int_with_ref.h>
24
24
 
25
 
namespace drizzled
26
 
{
 
25
namespace drizzled {
27
26
 
28
27
Item *Item_int_with_ref::clone_item()
29
28
{
32
31
    We need to evaluate the constant to make sure it works with
33
32
    parameter markers.
34
33
  */
35
 
  return (ref->unsigned_flag ?
 
34
  return ref->unsigned_flag ?
36
35
          new Item_uint(ref->name, ref->val_int(), ref->max_length) :
37
 
          new Item_int(ref->name, ref->val_int(), ref->max_length));
 
36
          new Item_int(ref->name, ref->val_int(), ref->max_length);
38
37
}
39
38
 
40
39
} /* namespace drizzled */