convert.h

来自「postgresql-odbc,跨平台应用」· C头文件 代码 · 共 63 行

H
63
字号
/* File:			convert.h * * Description:		See "convert.c" * * Comments:		See "notice.txt" for copyright and license information. * */#ifndef __CONVERT_H__#define __CONVERT_H__#include "psqlodbc.h"#ifdef	__cplusplusextern "C" {#endif/* copy_and_convert results */#define COPY_OK							0#define COPY_UNSUPPORTED_TYPE					1#define COPY_UNSUPPORTED_CONVERSION				2#define COPY_RESULT_TRUNCATED					3#define COPY_GENERAL_ERROR						4#define COPY_NO_DATA_FOUND						5/* convert_escape results */#define CONVERT_ESCAPE_OK					0#define CONVERT_ESCAPE_OVERFLOW					1#define CONVERT_ESCAPE_ERROR					-1typedef struct{	int		infinity;	int			m;	int			d;	int			y;	int			hh;	int			mm;	int			ss;	int			fr;} SIMPLE_TIME;int		copy_and_convert_field_bindinfo(StatementClass *stmt, OID field_type, void *value, int col);int	copy_and_convert_field(StatementClass *stmt, OID field_type,			void *value, SQLSMALLINT fCType, PTR rgbValue,			SQLLEN cbValueMax, SQLLEN *pcbValue, SQLLEN *pIndicator);int		copy_statement_with_parameters(StatementClass *stmt, BOOL);BOOL		convert_money(const char *s, char *sout, size_t soutmax);char		parse_datetime(const char *buf, SIMPLE_TIME *st);size_t		convert_linefeeds(const char *s, char *dst, size_t max, BOOL convlf, BOOL *changed);size_t		convert_special_chars(const char *si, char *dst, SQLLEN used, UInt4 flags,int ccsc, int escape_ch);int		convert_pgbinary_to_char(const char *value, char *rgbValue, ssize_t cbValueMax);size_t		convert_from_pgbinary(const UCHAR *value, UCHAR *rgbValue, SQLLEN cbValueMax);SQLLEN		pg_hex2bin(const UCHAR *in, UCHAR *out, SQLLEN len);int convert_lo(StatementClass *stmt, const void *value, SQLSMALLINT fCType,	 PTR rgbValue, SQLLEN cbValueMax, SQLLEN *pcbValue);Int4		findTag(const char *str, char dollar_quote, int ccsc);#ifdef	__cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?