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.

Table 1. MongoDB Data Types
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.