Header And Logo

PostgreSQL
| The world's most advanced open source database.

Functions

value.c File Reference

#include "postgres.h"
#include "nodes/parsenodes.h"
Include dependency graph for value.c:

Go to the source code of this file.

Functions

ValuemakeInteger (long i)
ValuemakeFloat (char *numericStr)
ValuemakeString (char *str)
ValuemakeBitString (char *str)

Function Documentation

Value* makeBitString ( char *  str  ) 

Definition at line 68 of file value.c.

References makeNode, Value::ValUnion::str, Value::type, and Value::val.

Referenced by nodeRead().

{
    Value      *v = makeNode(Value);

    v->type = T_BitString;
    v->val.str = str;
    return v;
}

Value* makeFloat ( char *  numericStr  ) 

Definition at line 38 of file value.c.

References makeNode, Value::ValUnion::str, Value::type, and Value::val.

Referenced by nodeRead().

{
    Value      *v = makeNode(Value);

    v->type = T_Float;
    v->val.str = numericStr;
    return v;
}

Value* makeInteger ( long  i  ) 

Definition at line 23 of file value.c.

References Value::ValUnion::ival, makeNode, Value::type, and Value::val.

Referenced by defWithOids(), nodeRead(), and postgresPlanForeignModify().

{
    Value      *v = makeNode(Value);

    v->type = T_Integer;
    v->val.ival = i;
    return v;
}

Value* makeString ( char *  str  )