diff options
author | Bruce Momjian <bruce@momjian.us> | 2002-03-25 01:53:55 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2002-03-25 01:53:55 +0000 |
commit | 51b55730ae48c7e2a2ffeba7cfc3372969be8aa5 (patch) | |
tree | 5112803fbf1d170aeb32ae0c261435ecdccf26e2 /src/interfaces/odbc/pgtypes.c | |
parent | 918feb61d6312ea39cb6f5a0bca737f4d2fbc743 (diff) | |
download | postgresql-51b55730ae48c7e2a2ffeba7cfc3372969be8aa5.tar.gz postgresql-51b55730ae48c7e2a2ffeba7cfc3372969be8aa5.zip |
Fix for ODBC compile warnings.
Diffstat (limited to 'src/interfaces/odbc/pgtypes.c')
-rw-r--r-- | src/interfaces/odbc/pgtypes.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/odbc/pgtypes.c b/src/interfaces/odbc/pgtypes.c index 5b6f85fbc39..b40985866e6 100644 --- a/src/interfaces/odbc/pgtypes.c +++ b/src/interfaces/odbc/pgtypes.c @@ -234,7 +234,9 @@ pgtype_to_sqltype(StatementClass *stmt, Int4 type) { ConnectionClass *conn = SC_get_conn(stmt); ConnInfo *ci = &(conn->connInfo); +#if (ODBCVER >= 0x0300) EnvironmentClass *env = (EnvironmentClass *) (conn->henv); +#endif switch (type) { @@ -342,7 +344,9 @@ pgtype_to_ctype(StatementClass *stmt, Int4 type) { ConnectionClass *conn = SC_get_conn(stmt); ConnInfo *ci = &(conn->connInfo); +#if (ODBCVER >= 0x0300) EnvironmentClass *env = (EnvironmentClass *) (conn->henv); +#endif switch (type) { |