static void DBfield_definition_string(char **sql, size_t *sql_alloc, size_t *sql_offset, const ZBX_FIELD *field)
#include "zbxdbupgrade.h"
# define ZBX_DB_TABLE_OPTIONS " engine=innodb"
# define ZBX_DROP_FK " drop foreign key"
# define ZBX_DB_TABLE_OPTIONS ""
# define ZBX_DROP_FK " drop constraint"
#if defined(HAVE_POSTGRESQL)
# define ZBX_DB_ALTER_COLUMN " alter"
# define ZBX_DB_ALTER_COLUMN " modify"
#if defined(HAVE_POSTGRESQL)
# define ZBX_DB_SET_TYPE " type"
# define ZBX_DB_SET_TYPE ""
# define ZBX_TYPE_ID_STR "bigint unsigned"
# define ZBX_TYPE_FLOAT_STR "double precision"
# define ZBX_TYPE_UINT_STR "bigint unsigned"
# define ZBX_TYPE_LONGTEXT_STR "longtext"
#elif defined(HAVE_ORACLE)
# define ZBX_TYPE_ID_STR "number(20)"
# define ZBX_TYPE_FLOAT_STR "binary_double"
# define ZBX_TYPE_UINT_STR "number(20)"
# define ZBX_TYPE_LONGTEXT_STR "nclob"
#elif defined(HAVE_POSTGRESQL)
# define ZBX_TYPE_ID_STR "bigint"
# define ZBX_TYPE_FLOAT_STR "double precision"
# define ZBX_TYPE_UINT_STR "numeric(20)"
# define ZBX_TYPE_LONGTEXT_STR "text"
# define ZBX_TYPE_INT_STR "number(10)"
# define ZBX_TYPE_CHAR_STR "nvarchar2"
# define ZBX_TYPE_SHORTTEXT_STR "nvarchar2(2048)"
# define ZBX_TYPE_TEXT_STR "nclob"
# define ZBX_TYPE_INT_STR "integer"
# define ZBX_TYPE_CHAR_STR "varchar"
# define ZBX_TYPE_SHORTTEXT_STR "text"
# define ZBX_TYPE_TEXT_STR "text"
#define ZBX_FIRST_DB_VERSION 2010000
extern unsigned char program_type;
static void DBfield_type_string(char **sql, size_t *sql_alloc, size_t *sql_offset, const ZBX_FIELD *field)