diff options
| author | Heikki Linnakangas | 2014-10-29 17:36:26 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2014-10-29 17:36:26 +0000 |
| commit | 11af46cd70cbd42cee70f75e36e2dfa85adbf8cd (patch) | |
| tree | 88d0f81458882e978fa106a1f510ac67e77257de /odbcapiw.c | |
| parent | b2a6031e3e69f0ae90b92faa9068c07f72b5a08e (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.c | 13 |
1 files changed, 2 insertions, 11 deletions
@@ -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; } |
