summaryrefslogtreecommitdiff
path: root/odbcapiw.c
diff options
context:
space:
mode:
authorHeikki Linnakangas2014-10-29 17:36:26 +0000
committerHeikki Linnakangas2014-10-29 17:36:26 +0000
commit11af46cd70cbd42cee70f75e36e2dfa85adbf8cd (patch)
tree88d0f81458882e978fa106a1f510ac67e77257de /odbcapiw.c
parentb2a6031e3e69f0ae90b92faa9068c07f72b5a08e (diff)
Merge info30.c and info.c
We no longer support ODBC 3.0, so these don't need to be separate anymore. This removes some duplicated code at the bottom of each GetInfoAPI. Michael Paquier
Diffstat (limited to 'odbcapiw.c')
-rw-r--r--odbcapiw.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/odbcapiw.c b/odbcapiw.c
index 9de40e9..b14d964 100644
--- a/odbcapiw.c
+++ b/odbcapiw.c
@@ -374,19 +374,10 @@ SQLGetInfoW(HDBC ConnectionHandle,
ENTER_CONN_CS(conn);
CC_set_in_unicode_driver(conn);
CC_clear_error(conn);
- mylog("[%s(30)]", func);
+ mylog("[%s]", func);
if ((ret = PGAPI_GetInfo(ConnectionHandle, InfoType, InfoValue,
BufferLength, StringLength)) == SQL_ERROR)
- {
- if (conn->driver_version >= 0x0300)
- {
- CC_clear_error(conn);
- ret = PGAPI_GetInfo30(ConnectionHandle, InfoType, InfoValue,
- BufferLength, StringLength);
- }
- }
- if (SQL_ERROR == ret)
- CC_log_error("SQLGetInfoW(30)", "", conn);
+ CC_log_error("SQLGetInfoW", "", conn);
LEAVE_CONN_CS(conn);
return ret;
}