Adaptive Server Datatypes | RWDBValue::ValueType | C++ Datatype |
char(n) varchar(n) text | String | |
nchar(n) nvarchar(n) | MBString1 | |
unichar(n), univarchar(n) unitext | UString | |
binary(n) varbinary(n) image timestamp | Blob | |
bit tinyint smallint | Short | short int |
int | Long | long int |
decimal(p,0) p <= 9 numeric(p,0) p <= 9 | Long | long int |
decimal(p,0) 10 <= p < 19 numeric(p,0) 10 <= p < 19 | LongLong | long long |
decimal(p,0) p >= 19 numeric(p,0) p >= 19 | Decimal | |
decimal(p,s) numeric(p,s) | Decimal | |
float(p) double precision | Double | double |
real | Float | float |
money smallmoney | Decimal | |
DateTime |
RWDBValue::ValueType | Adaptive Server Datatype |
Char UnsignedChar Tiny UnsignedTiny | tinyint |
String | |
WString MBString | |
UString | |
Blob | |
Short UnsignedShort | smallint |
Int UnsignedInt | int |
Long UnsignedLong | int |
Float | real |
Double | float(p), using precision of column |
Decimal | money or decimal(p,s) using precision and scale of column. See below. |
Date DateTime | datetime |
Duration | Not supported by the Sybase client |
RWDBValue::ValueType | Restrictions |
Char UnsignedChar | No restrictions |
String WString MBString UString | Not supported on RWDBBoundExpr if string size is bigger than 16384 bytes |
Blob | Not supported on RWDBBoundExpr |
Short UnsignedShort | No restrictions |
Int UnsignedInt | No restrictions |
Long UnsignedLong | No restrictions |
Double | No restrictions |
Float | No restrictions |
Decimal | The precision and scale of a value can vary depending on the version of the Sybase client and server. Consistent versions of clients and servers can eliminate difficulties in conversions. |
Date | No restrictions |
DateTime | Supports dates ranging from January 1, 1753 through December 31, 9999, 23:59:59.999. However, accuracy is limited to 3.33 milliseconds by Sybase. Therefore, the maximum date that could be inserted is December 31, 9999, 23:59:59.996. |
TimeTuple | No restrictions |
TimeTupleOffset | Not supported |
Duration | Not supported by the Sybase client |
LongLong UnsignedLongLong | Table creation not supported |
LongDouble | No restrictions |