diff --git a/source/const.inc b/source/const.inc index 4cf9646a..157f10ab 100644 --- a/source/const.inc +++ b/source/const.inc @@ -183,6 +183,7 @@ const FIELD_TYPE_NEWDATE = 14; FIELD_TYPE_VARCHAR = 15; FIELD_TYPE_BIT = 16; + FIELD_TYPE_JSON = 245; FIELD_TYPE_NEWDECIMAL = 246; FIELD_TYPE_ENUM = 247; FIELD_TYPE_SET = 248; diff --git a/source/mysql_structures.pas b/source/mysql_structures.pas index 00e4d57e..9c4b15ba 100644 --- a/source/mysql_structures.pas +++ b/source/mysql_structures.pas @@ -276,7 +276,7 @@ var ); // MySQL Data Type List and Properties - MySQLDatatypes: array [0..35] of TDBDatatype = + MySQLDatatypes: array [0..36] of TDBDatatype = ( ( Index: dtTinyint; @@ -599,6 +599,24 @@ var LoadPart: True; Category: dtcText; ), + ( + Index: dtJson; + NativeType: FIELD_TYPE_JSON; + Name: 'JSON'; + Description: 'JSON' + CRLF + + 'Documents stored in JSON columns are converted to an internal format that '+ + 'permits quick read access to document elements. When the server later must '+ + 'read a JSON value stored in this binary format, the value need not be parsed '+ + 'from a text representation. The binary format is structured to enable the '+ + 'server to look up subobjects or nested values directly by key or array index '+ + 'without reading all values before or after them in the document.'; + HasLength: False; + RequiresLength: False; + HasBinary: False; + HasDefault: False; + LoadPart: False; + Category: dtcText; + ), ( Index: dtBinary; NativeType: FIELD_TYPE_STRING;