value.c
来自「PostgreSQL 8.1.4的源码 适用于Linux下的开源数据库系统」· C语言 代码 · 共 76 行
C
76 行
/*------------------------------------------------------------------------- * * value.c * implementation of Value nodes * * * Copyright (c) 2003-2005, PostgreSQL Global Development Group * * * IDENTIFICATION * $PostgreSQL: pgsql/src/backend/nodes/value.c,v 1.2 2005/01/01 20:44:15 tgl Exp $ * *------------------------------------------------------------------------- */#include "postgres.h"#include "nodes/parsenodes.h"/* * makeInteger */Value *makeInteger(long i){ Value *v = makeNode(Value); v->type = T_Integer; v->val.ival = i; return v;}/* * makeFloat * * Caller is responsible for passing a palloc'd string. */Value *makeFloat(char *numericStr){ Value *v = makeNode(Value); v->type = T_Float; v->val.str = numericStr; return v;}/* * makeString * * Caller is responsible for passing a palloc'd string. */Value *makeString(char *str){ Value *v = makeNode(Value); v->type = T_String; v->val.str = str; return v;}/* * makeBitString * * Caller is responsible for passing a palloc'd string. */Value *makeBitString(char *str){ Value *v = makeNode(Value); v->type = T_BitString; v->val.str = str; return v;}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?