Skip to content

Commit f226d77

Browse files
committed
Replace footnote markers with superscript numbers
1 parent 7b68a00 commit f226d77

1 file changed

Lines changed: 15 additions & 14 deletions

File tree

docs/odbc/reference/appendixes/sql-to-c-date.md

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,30 +14,31 @@ helpviewer_keywords:
1414
---
1515
# SQL to C: Date
1616

17-
The identifier for the date ODBC SQL data type is:
18-
19-
SQL_TYPE_DATE
17+
The identifier for the date ODBC SQL data type is:
18+
19+
SQL_TYPE_DATE
2020

2121
The following table shows the ODBC C data types to which the driver can convert date SQL data. For an explanation of the columns and terms in the table, see [Converting Data from SQL to C Data Types](../../../odbc/reference/appendixes/converting-data-from-sql-to-c-data-types.md).
2222

2323
> [!NOTE]
24-
> For character conversions, *BufferLength* must include space for the null terminator. A date string is 10 characters long (yyyy-mm-dd), so *BufferLength* must be at least 11 bytes to avoid truncation.
25-
26-
|C type identifier|Test|**TargetValuePtr*|**StrLen_or_IndPtr*|SQLSTATE|
24+
> For character conversions, *BufferLength* must include space for the null terminator. A date string is 10 characters long (yyyy-mm-dd), so *BufferLength* must be at least 11 bytes to avoid truncation.
25+
26+
|C type identifier|Test|**TargetValuePtr*|**StrLen_or_IndPtr*|SQLSTATE|
2727
|-----------------------|----------|------------------------|----------------------------|--------------|
2828
|SQL_C_CHAR|*BufferLength* > Character byte length<br /><br /> 11 <= *BufferLength* <= Character byte length<br /><br /> *BufferLength* < 11|Data<br /><br /> Truncated data<br /><br /> Undefined|10<br /><br /> Length of data in bytes<br /><br /> Undefined|n/a<br /><br /> 01004<br /><br /> 22003|
2929
|SQL_C_WCHAR|*BufferLength* > Character length<br /><br /> 11 <= *BufferLength* <= Character length<br /><br /> *BufferLength* < 11|Data<br /><br /> Truncated data<br /><br /> Undefined|10<br /><br /> Length of data in characters<br /><br /> Undefined|n/a<br /><br /> 01004<br /><br /> 22003|
3030
|SQL_C_BINARY|Byte length of data <= *BufferLength*<br /><br /> Byte length of data > *BufferLength*|Data<br /><br /> Undefined|Length of data in bytes<br /><br /> Undefined|n/a<br /><br /> 22003|
31-
|SQL_C_TYPE_DATE|None[a]|Data|6[c]|n/a|
32-
|SQL_C_TYPE_TIMESTAMP|None[a]|Data[b]|16[c]|n/a|
33-
34-
[a] The value of *BufferLength* is ignored for this conversion. The driver assumes that the size of **TargetValuePtr* is the size of the C data type.
35-
36-
[b] The driver sets the time fields of the timestamp structure to zero.
37-
38-
[c] This is the size of the corresponding C data type.
31+
|SQL_C_TYPE_DATE|None<sup>1</sup>|Data|6<sup>3</sup>|n/a|
32+
|SQL_C_TYPE_TIMESTAMP|None<sup>1</sup>|Data<sup>2</sup>|16<sup>3</sup>|n/a|
33+
34+
<sup>1</sup> The value of *BufferLength* is ignored for this conversion. The driver assumes that the size of **TargetValuePtr* is the size of the C data type.
35+
36+
<sup>2</sup> The driver sets the time fields of the timestamp structure to zero.
37+
38+
<sup>3</sup> This is the size of the corresponding C data type.
3939

4040
When the driver converts date SQL data to character C data, the resulting string is in the "*yyyy*-*mm*-*dd*" format. This format isn't affected by the Windows country/region setting.
41+
4142
## Related content
4243

4344
- [Converting Data from SQL to C Data Types](../../../odbc/reference/appendixes/converting-data-from-sql-to-c-data-types.md)

0 commit comments

Comments
 (0)