3 * Description: See "convert.c"
5 * Comments: See "notice.txt" for copyright and license information.
17 /* copy_and_convert results */
19 #define COPY_UNSUPPORTED_TYPE 1
20 #define COPY_UNSUPPORTED_CONVERSION 2
21 #define COPY_RESULT_TRUNCATED 3
22 #define COPY_GENERAL_ERROR 4
23 #define COPY_NO_DATA_FOUND 5
37 int copy_and_convert_field_bindinfo(StatementClass
*stmt
, OID field_type
, void *value
, int col
);
38 int copy_and_convert_field(StatementClass
*stmt
, OID field_type
,
39 void *value
, SQLSMALLINT fCType
, PTR rgbValue
,
40 SQLLEN cbValueMax
, SQLLEN
*pcbValue
, SQLLEN
*pIndicator
);
42 BOOL
convert_money(const char *s
, char *sout
, size_t soutmax
);
43 char parse_datetime(const char *buf
, SIMPLE_TIME
*st
);
44 size_t convert_linefeeds(const char *s
, char *dst
, size_t max
, BOOL convlf
, BOOL
*changed
);
45 size_t convert_special_chars(const char *si
, char *dst
, SQLLEN used
, UInt4 flags
,int ccsc
, int escape_ch
);
47 int convert_pgbinary_to_char(const char *value
, char *rgbValue
, ssize_t cbValueMax
);
48 size_t convert_from_pgbinary(const UCHAR
*value
, UCHAR
*rgbValue
, SQLLEN cbValueMax
);
49 SQLLEN
pg_hex2bin(const UCHAR
*in
, UCHAR
*out
, SQLLEN len
);
50 Int4
findTag(const char *str
, char dollar_quote
, int ccsc
);