diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-13 09:52:44 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2011-12-13 09:52:44 +0200 |
commit | 213740c161499a5961fa426d1b77c7d68763c5df (patch) | |
tree | c728215544c5bb32c2b5e6d2e627b04db74a2843 /odb/mssql/mssql-types.hxx | |
parent | de057163bce41b64926f6d777ce1b09a98d9bb6e (diff) |
Initial value traits implementations
Diffstat (limited to 'odb/mssql/mssql-types.hxx')
-rw-r--r-- | odb/mssql/mssql-types.hxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/odb/mssql/mssql-types.hxx b/odb/mssql/mssql-types.hxx index 2ce7940..caedda3 100644 --- a/odb/mssql/mssql-types.hxx +++ b/odb/mssql/mssql-types.hxx @@ -87,12 +87,10 @@ namespace odb int_, // Buffer is a 4-byte integer. bigint, // Buffer is an 8-byte integer. - /* - numeric, // Buffer is an SQL_NUMERIC_STRUCT. + decimal, // Buffer is a decimal struct (SQL_NUMERIC_STRUCT). - smallmoney, // Buffer is a 4-byte integer (*10,000 value). - money, // Buffer is an 8-byte integer (*10,000 value). - */ + smallmoney, // Buffer is a smallmoney struct (DBMONEY4). + money, // Buffer is a money struct (DBMONEY). float4, // Buffer is a float. float8, // Buffer is a double. @@ -124,6 +122,9 @@ namespace odb SQLLEN* size_ind; // Pointer to the size/inidicator variable. SQLLEN capacity; // Buffer capacity. For string/binary parameters // this value is also used as maximum column size. + // For decimal parameters it contains precision (p) + // and scale (s) encoded as (p * 100 + s). For float4 + // and float8 it contains precision. }; } } |