Skip to content

Commit ee9e44d

Browse files
authored
Merge pull request #2429 from MightyPen/bcyml-01-4sb
SQL_NUMERIC_STRUCT, and SQL_C_NUMERIC, recovered for Jason Chou (v-Ch…
2 parents 24ab4b7 + c9e7865 commit ee9e44d

File tree

3 files changed

+386
-2
lines changed

3 files changed

+386
-2
lines changed

docs/odbc/reference/appendixes/TOC.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# [Block Cursors, Scrollable Cursors, and Backward Compatibility](block-cursors-scrollable-cursors-and-backward-compatibility.md)
1515
# [Bookmark C Data Type](bookmark-c-data-type.md)
1616
# [C Data Types](c-data-types.md)
17+
## [Retrieve numeric data with SQL_NUMERIC_STRUCT in C](retrieve-numeric-data-sql-numeric-struct-kb222831.md)
1718
# [C Interval Structure](c-interval-structure.md)
1819

1920
# [Converting Data from C to SQL Data Types](converting-data-from-c-to-sql-data-types.md)

docs/odbc/reference/appendixes/c-data-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: "C Data Types | Microsoft Docs"
33
ms.custom: ""
4-
ms.date: "01/19/2017"
4+
ms.date: "07/12/2017"
55
ms.prod: "sql-non-specified"
66
ms.reviewer: ""
77
ms.suite: ""
@@ -135,7 +135,7 @@ struct tagSQLGUID {
135135

136136
[e] A number is stored in the *val* field of the SQL_NUMERIC_STRUCT structure as a scaled integer, in little endian mode (the leftmost byte being the least-significant byte). For example, the number 10.001 base 10, with a scale of 4, is scaled to an integer of 100010. Because this is 186AA in hexadecimal format, the value in SQL_NUMERIC_STRUCT would be "AA 86 01 00 00 ... 00", with the number of bytes defined by the SQL_MAX_NUMERIC_LEN **#define**.
137137

138-
For more information about **SQL_NUMERIC_STRUCT**, see [HOWTO: Retrieving Numeric Data with SQL_NUMERIC_STRUCT](http://go.microsoft.com/fwlink/?LinkId=147596).
138+
For more information about **SQL_NUMERIC_STRUCT**, see [HOWTO: Retrieving Numeric Data with SQL_NUMERIC_STRUCT](retrieve-numeric-data-sql-numeric-struct-kb222831.md).
139139

140140
[f] The precision and scale fields of the SQL_C_NUMERIC data type areused for input from an application and for output from the driver to the application. When the driver writes a numeric value into the SQL_NUMERIC_STRUCT, it will use its own driver-specific default as the value for the *precision* field, and it will use the value in the SQL_DESC_SCALE field of the application descriptor (which defaults to 0) for the *scale* field. An application can provide its own values for precision and scale by setting the SQL_DESC_PRECISION and SQL_DESC_SCALE fields of the application descriptor.
141141

0 commit comments

Comments
 (0)