15.10 - ODBC C Character Data Types - ODBC Driver for Teradata

ODBC Driver for Teradata User Guide

prodname
ODBC Driver for Teradata
vrm_release
15.10
category
User Guide
featnum
B035-2509-035K

ODBC Driver for Teradata conforms to ODBC 3.52 specifications and supports SQL_C_CHAR and SQL_C_WCHAR C data types as listed in Table 39:

 

Table 39: SQL_C_CHAR and SQL_C_WCHAR C Data Types 

ODBC C Data Type

Windows Platform

UNIX Platforms

Apple OS X

SQL_C_CHAR

Character string encoded in the code page of the application
(Windows application code page)

Character string encoded in the code page of the application
(ODBC application code page)

Character string encoded in the code page of the application (current locale LC_TYPE category)

SQL_C_WCHAR

Unicode (UTF-16) character string

Unicode (UTF-8) character string

Unicode (UTF-32) character string

An ODBC application can pass and retrieve character data encoded in the application code page (SQL_C_CHAR) or Unicode (SQL_C_WCHAR) character data to or from the ODBC driver. ODBC Driver for Teradata converts the character string to or from the session character set when required; see “Conversion and Error Handling” for additional information.