#ifndef __PSQLODBC_H__
#define __PSQLODBC_H__
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#ifdef UNIX
+#define Int4 long int
+#define UInt4 unsigned int
+#define Int2 short
+#define UInt2 unsigned short
+typedef float SFLOAT;
+typedef double SDOUBLE;
+#else
#define Int4 int
#define UInt4 unsigned int
#define Int2 short
#define UInt2 unsigned short
+#endif
typedef UInt4 Oid;
#define BYTELEN 8
#define VARHDRSZ sizeof(Int4)
+#define MAX_TABLE_LEN 32
+#define MAX_COLUMN_LEN 32
+#define MAX_CURSOR_LEN 32
+
/* Registry length limits */
#define LARGE_REGISTRY_LEN 4096 /* used for special cases */
#define MEDIUM_REGISTRY_LEN 256 /* normal size for user,database,etc. */
/* Driver stuff */
#define DRIVERNAME "PostgreSQL ODBC"
#define DBMS_NAME "PostgreSQL"
-#define DBMS_VERSION "06.30.0246 PostgreSQL 6.3"
-#define POSTGRESDRIVERVERSION "06.30.0246"
-#define DRIVER_FILE_NAME "PSQLODBC.DLL"
+#define DBMS_VERSION "06.30.0248 PostgreSQL 6.3"
+#define POSTGRESDRIVERVERSION "06.30.0248"
+#ifndef UNIX
+#define DRIVER_FILE_NAME "PSQLODBC.DLL"
+#else
+#define DRIVER_FILE_NAME "libpsqlodbc.so"
+#endif
#define PG62 "6.2" /* "Protocol" key setting to force Postgres 6.2 */
typedef struct TupleNode_ TupleNode;
typedef struct TupleField_ TupleField;
+typedef struct col_info COL_INFO;
typedef struct lo_arg LO_ARG;
typedef struct GlobalValues_
char unknowns_as_longvarchar;
char bools_as_char;
char lie;
+ char parse;
char extra_systable_prefixes[MEDIUM_REGISTRY_LEN];
char conn_settings[LARGE_REGISTRY_LEN];
} GLOBAL_VALUES;