Data types
- Last Updated: January 26, 2022
- 1 minute read
- DataDirect Connectors
- JDBC
- MongoDB 6.1
- Documentation
The following table lists data types supported by the driver and how they are mapped to JDBC data types.
See "getTypeInfo()" for getTypeInfo() results of data types supported by the driver.
| MongoDB Data Type | JDBC Data Type |
|---|---|
| ARRAY | LONGVARCHAR |
| BIGINT | BIGINT |
| BINDATA | VARBINARY |
| BOOLEAN | BOOLEAN |
| CHAR | CHAR |
| DATE | TIMESTAMP |
| DECIMAL128 | DECIMAL |
| DOUBLE | DOUBLE |
| INTEGER | INTEGER |
| JAVASCRIPT | VARCHAR |
| LONGVARCHAR | LONGVARCHAR |
| OBJECT | LONGVARCHAR |
| OBJECTID | VARCHAR |
| REGEX1 | VARCHAR |
| STRING | VARCHAR |
1 The driver supports only the literal format for
the Regex data type. Therefore, when executing an Insert or Select statement, Regex values
must be specified using the literal format.