summaryrefslogtreecommitdiff
path: root/src/interfaces/odbc/convert.h
diff options
context:
space:
mode:
authorByron Nikolaidis <byronn@insightdist.com>1998-06-03 20:33:45 +0000
committerByron Nikolaidis <byronn@insightdist.com>1998-06-03 20:33:45 +0000
commit99d21d5b62a54d64b95dc915a35fb35111bbc430 (patch)
tree06f02f33d40f78fd3b73ad6d775b18fd34ffd7e4 /src/interfaces/odbc/convert.h
parent85f91d0e8e2fa996a2c7ec629037387e1a9cfd88 (diff)
downloadpostgresql-99d21d5b62a54d64b95dc915a35fb35111bbc430.tar.gz
Update odbc driver to current version V.0244
Diffstat (limited to 'src/interfaces/odbc/convert.h')
-rw-r--r--src/interfaces/odbc/convert.h42
1 files changed, 22 insertions, 20 deletions
diff --git a/src/interfaces/odbc/convert.h b/src/interfaces/odbc/convert.h
index 2826589a6a..56f798f8e8 100644
--- a/src/interfaces/odbc/convert.h
+++ b/src/interfaces/odbc/convert.h
@@ -1,11 +1,11 @@
-
-/* File: convert.h
- *
- * Description: See "convert.c"
- *
- * Comments: See "notice.txt" for copyright and license information.
- *
- */
+
+/* File: convert.h
+ *
+ * Description: See "convert.c"
+ *
+ * Comments: See "notice.txt" for copyright and license information.
+ *
+ */
#ifndef __CONVERT_H__
#define __CONVERT_H__
@@ -13,10 +13,12 @@
#include "psqlodbc.h"
/* copy_and_convert results */
-#define COPY_OK 0
+#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
typedef struct {
int m;
@@ -27,21 +29,21 @@ typedef struct {
int ss;
} SIMPLE_TIME;
-int copy_and_convert_field_bindinfo(Int4 field_type, void *value, BindInfoClass *bic);
-int copy_and_convert_field(Int4 field_type, void *value,
- Int2 fCType, PTR rgbValue, SDWORD cbValueMax, SDWORD *pcbValue);
+int copy_and_convert_field_bindinfo(StatementClass *stmt, Int4 field_type, void *value, int col);
+int copy_and_convert_field(StatementClass *stmt, Int4 field_type, void *value, Int2 fCType,
+ PTR rgbValue, SDWORD cbValueMax, SDWORD *pcbValue, char multiple);
int copy_statement_with_parameters(StatementClass *stmt);
char *convert_escape(char *value);
char *convert_money(char *s);
-int monthToNumber(char *mon);
-char *convert_time(SIMPLE_TIME *st);
char parse_datetime(char *buf, SIMPLE_TIME *st);
-char *convert_linefeeds(char *s, char *dst, size_t max);
-char *convert_returns(char *si, char *dst, int used);
-
-int convert_pgbinary_to_char(char *value, char *rgbValue, int cbValueMax);
-int convert_from_pgbinary(unsigned char *value, unsigned char *rgbValue, int cbValueMax);
-int convert_to_pgbinary(unsigned char *in, char *out, int len);
+char *convert_linefeeds(char *s, char *dst, size_t max);
+char *convert_special_chars(char *si, char *dst, int used);
+
+int convert_pgbinary_to_char(char *value, char *rgbValue, int cbValueMax);
+int convert_from_pgbinary(unsigned char *value, unsigned char *rgbValue, int cbValueMax);
+int convert_to_pgbinary(unsigned char *in, char *out, int len);
+int convert_lo(StatementClass *stmt, void *value, Int2 fCType, PTR rgbValue,
+ SDWORD cbValueMax, SDWORD *pcbValue, char multiple);
#endif