~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/int_with_ref.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-07 13:41:07 UTC
  • mto: This revision was merged to the branch mainline in revision 2385.
  • Revision ID: olafvdspek@gmail.com-20110707134107-6mi7pauiatxtf4oe
Rename strmake to strdup (standard name)

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 <config.h>
21
21
 
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 */