Repository navigation
snowflake-odbc v4.3.0
New features:
- Added support for a leading
~intoken_file_path, so a path such as~/.snowflake/pat.tokenis read from the home directory when loading a PAT, OAuth, or OIDC bearer token. (snowflake-eng/drivers#3049)
Changes:
- Changed query-result
SQL_DESC_TYPE_NAMEfor FILE columns to reportFILE.SQLDescribeColstaysSQL_VARCHAR, including whenODBC_USE_CUSTOM_SQL_DATA_TYPESis enabled. (snowflake-eng/drivers#2833) - Changed the Windows installer to reject a driver name that contains
#. (snowflake-eng/drivers#2963) - Changed
SQLBindColandSQLGetDatawithSQL_C_DEFAULTonINTERVALresult columns to return aSQL_INTERVAL_STRUCTinstead of the ANSI interval literal string, failing with22015when the leading field exceeds the interval leading precision (2 digits by default) and withHY090when a nonzero buffer length is smaller than the struct; bindingSQL_C_CHARstill returns the string. (snowflake-eng/drivers#3020)
Bug fixes:
- Added the
X-Snowflake-Servicerequest header, echoing theSERVICE_NAMEsession parameter on queries so the proxy routes requests to the correct HTAP cluster. (snowflake-eng/drivers#3068) - Fixed catalog function SMALLINT and INTEGER result columns reporting NUMBER display size, octet length, and type names.
SQL_DESC_LOCAL_TYPE_NAMEon those columns now matches the 3.x driver (SSMALLINT,USMALLINT,SINTEGER), and unsignedUSER_DATA_TYPEreports display size 5. Catalog wide-character columns report octet length as four bytes per character, andSQLSpecialColumnsCOLUMN_NAMEreports character length 255. (snowflake-eng/drivers#2760) - Fixed the driver resubmitting a running query when the session token expired during a long-running server-side poll; the driver now refreshes the token and retries only the result poll. (snowflake-eng/drivers#3127)
- Fixed
SQLGetEnvAttrandSQLSetEnvAttrof an unrecognized environment attribute returning HYC00 instead of HY092. (snowflake-eng/drivers#3179) - Fixed SQLExecDirect failing with a parameter-binding error for statements that have no parameters when only a deferred length or indicator pointer was set. (snowflake-eng/drivers#3045)
- Fixed SQLExecDirect treating SQL_DESC_OCTET_LENGTH_PTR as a null indicator on non-character parameters. (snowflake-eng/drivers#3045)
- Fixed the Linux RPM and deb packages so removing a package unregisters the driver name recorded at install, including a custom
SF_DRIVER_NAME, and an upgrade keeps that registration unlessSF_DRIVER_NAMEnames a different driver, which replaces the old registration. (snowflake-eng/drivers#2964) - Fixed the Linux RPM upgrade so the driver and the
snowflakeDSN stay registered, while an upgrade from a driver version released before this fix registersSF_DRIVER_NAMEor the defaultSnowflake ODBCname and leaves a different custom name from that version registered. (snowflake-eng/drivers#2964) - Fixed the macOS ODBC driver library so its install name is
/opt/snowflake/snowflakeodbc/lib/libsfodbc.dylib. (snowflake-eng/drivers#3051) - Fixed the macOS installer so installed driver files are owned by root. (snowflake-eng/drivers#3046)
- Fixed the macOS installer so it registers the driver in the system-wide
/Library/ODBC/odbcinst.inias well as for the installing user. (snowflake-eng/drivers#3055) - Fixed
SQLGetEnvAttr(SQL_ATTR_DRIVER_UNICODE_TYPE)returning an unsupported-attribute error, so iODBC 3.52.14 and later converts wide strings to the driver's UTF-16 or UTF-32 encoding. (snowflake-eng/drivers#3179) - Fixed column-wise
SQLBindColarrays bound asSQL_C_DEFAULTwith a zeroBufferLengthwriting every fetched row into the first array element instead of advancing by the size of the default C type. (snowflake-eng/drivers#3027) - Fixed
SQLBindParameterwithSQL_C_DEFAULTand aSQL_INTERVAL_*parameter type reading the boundSQL_INTERVAL_STRUCTas a character string instead of as the matchingSQL_C_INTERVAL_*type. (snowflake-eng/drivers#3020) - Fixed
SQLPutDatarejecting character and binary data bound asSQL_C_DEFAULTwithHY019when it was sent in more than one piece. (snowflake-eng/drivers#3027) - Fixed
SQLBindParameterwithSQL_C_DEFAULTandSQL_REALreading the bound value as an 8-byte double instead of a 4-byteSQL_C_FLOAT, which inserted wrong values and misread parameter arrays. (snowflake-eng/drivers#3010) - Fixed
SQL_C_DEFAULTonSQL_WCHAR,SQL_WVARCHAR, andSQL_WLONGVARCHARtreating data as narrow characters instead ofSQL_C_WCHAR, which truncated or corrupted bound wide-string parameters and returned catalog function wide-character columns as narrow strings. (snowflake-eng/drivers#3013) - Fixed
SQLColumnsandSQLGetTypeInfoNUM_PREC_RADIXreporting INTEGER instead of the SMALLINT type the ODBC specification defines. (snowflake-eng/drivers#2760) - Fixed
SQLTablesandSQLColumnsso that, withCLIENT_METADATA_REQUEST_USE_CONNECTION_CTXenabled, a non-NULL catalog argument such as%is no longer limited to the current schema, and an unset session database or schema no longer makes the call return no rows. (snowflake-eng/drivers#2862) - Fixed the Windows installer so uninstalling or upgrading a driver registered under a custom
DRIVER_NAMEremoves that registration when this version or a later one installed it and leaves any otherSnowflake ODBCregistration in place, while an upgrade from an earlier installer still removes the defaultSnowflake ODBCregistration unless that version is uninstalled with its originalDRIVER_NAMEfirst. (snowflake-eng/drivers#2963) - Fixed the Windows ODBC driver so applications can call
SFGetFipsStatusbefore connecting. (snowflake-eng/drivers#2837) - Fixed the macOS ODBC installer so the driver-name dialog appears only during an interactive Installer.app install. (snowflake-eng/drivers#3048)
- Fixed
validate_default_parameters=truenot failing login when the specified database, schema, or warehouse does not exist. (snowflake-eng/drivers#2974) - Fixed Windows wide-string calls being mis-decoded, which failed or crashed the connection, when
sf.odbc.inisetsDriverManagerEncoding=UTF-32; the driver now uses UTF-16 and logs a warning. (snowflake-eng/drivers#2961)