ODBC/MX Driver for Windows Manual for SQL/MX Release 3.2.1 (H06.26+, J06.15+)

Table Of Contents
ODBC/MX Conformance
HP NonStop ODBC/MX Driver for Windows691126-002
5-23
SQL Datetime Retrieval Property
create table interval_frac
(
ID2S interval day to second,
ID2S0 interval day to second (0),
ID2S1 interval day to second (1),
ID2S2 interval day to second (2),
ID2S3 interval day to second (3),
ID2S4 interval day to second (4)
)
For the above DDL, when you insert values for all columns as 11 22:33:44.1
and 02 11:21:12.1234 binding to valid datatypes, the values are inserted as
follows:
Table 5-25. SQL Interval Value Insertion property set to SYSTEM_DEFAULT
If the SQL Interval Insertion property is set to MSDN_DEFAULT, 02
11:21:12.0001234 is inserted. In this example, zeroes are prefixed in the
following way:
For example,
create table interval_frac
(
ID2S interval day to second,
ID2S0 interval day to second (0),
ID2S1 interval day to second (1),
ID2S2 interval day to second (2),
ID2S3 interval day to second (3),
ID2S4 interval day to second (4)
)
For the above DDL, when you insert values for all columns as 11 22:33:44.1
and 02 11:21:12.1234 binding to valid datatypes, the values are inserted as
follows:
Table 5-26. SQL Interval Value Insertion property set to MSDN_DEFAULT
SQL Datetime Retrieval Property
The SQL Datetime Retrieval specifies how the SQL/MP Datetime data type is
retrieved from the ODBC/MX driver.
ID2S ID2S0 ID2S1 ID2S2 ID2S3 ID2S4
11 22:33:44.100000 11 22:33:44 11 22:33:44.1 11 22:33:44.10 11 22:33:44.100 11 22:33:44.1000
11 22:33:44.123400 11 22:33:44 11 22:33:44.1 11 22:33:44.12 11 22:33:44.123 11 22:33:44.1234
ID2S ID2S0 ID2S1 ID2S2 ID2S3 ID2S4
11 22:33:44.000001 11 22:33:44 11 22:33:44.1 11 22:33:44.01 11 22:33:44.001 11 22:33:44.0001
11 22:33:44.001234 11 22:33:44 11 22:33:44.1 11 22:33:44.12 11 22:33:44.123 11 22:33:44.1234
Note. In the above examples, the SQL Fraction Precision Value is set to SYSTEM_DEFAULT
(microseconds).