Permalink
Browse files

Insert carats for blob and text sizes in mysql

  • Loading branch information...
mmeyer2k authored and ansgarbecker committed Feb 5, 2019
1 parent 92a88b2 commit f72a2b70c2824a9fbf3c2b00f0cc0f3828a22957
Showing with 11 additions and 11 deletions.
  1. +11 −11 source/mysql_structures.pas
@@ -86,7 +86,7 @@ MYSQL_FIELD = record
db_length: Cardinal;
catalog_length: Cardinal;
def_length: Cardinal;
//***********************
//***********************
flags: Cardinal; // Div flags
decimals: Cardinal; // Number of decimals in field
charsetnr: Cardinal; // char set number (added in 4.1)
@@ -203,7 +203,7 @@ MYSQL_RES = record
MYSQL_OPT_SSL_CIPHER,
MYSQL_OPT_SSL_CRL,
MYSQL_OPT_SSL_CRLPATH,
// Connection attribute options
// Connection attribute options
MYSQL_OPT_CONNECT_ATTR_RESET,
MYSQL_OPT_CONNECT_ATTR_ADD,
MYSQL_OPT_CONNECT_ATTR_DELETE,
@@ -605,7 +605,7 @@ TServerVariable = record
NativeType: mytTinyblob;
Name: 'TINYTEXT';
Description: 'TINYTEXT' + CRLF +
'A TEXT column with a maximum length of 255 (28 - 1) characters. The ' +
'A TEXT column with a maximum length of 255 (2^8 - 1) characters. The ' +
'effective maximum length is less if the value contains multi-byte ' +
'characters. Each TINYTEXT value is stored using a one-byte length ' +
'prefix that indicates the number of bytes in the value.';
@@ -621,7 +621,7 @@ TServerVariable = record
NativeType: mytBlob;
Name: 'TEXT';
Description: 'TEXT[(M)]' + CRLF +
'A TEXT column with a maximum length of 65,535 (216 - 1) characters. The ' +
'A TEXT column with a maximum length of 65,535 (2^16 - 1) characters. The ' +
'effective maximum length is less if the value contains multi-byte ' +
'characters. Each TEXT value is stored using a two-byte length prefix ' +
'that indicates the number of bytes in the value. ' + CRLF +
@@ -640,7 +640,7 @@ TServerVariable = record
NativeType: mytMediumblob;
Name: 'MEDIUMTEXT';
Description: 'MEDIUMTEXT' + CRLF +
'A TEXT column with a maximum length of 16,777,215 (224 - 1) characters. ' +
'A TEXT column with a maximum length of 16,777,215 (2^24 - 1) characters. ' +
'The effective maximum length is less if the value contains multi-byte ' +
'characters. Each MEDIUMTEXT value is stored using a three-byte length ' +
'prefix that indicates the number of bytes in the value.';
@@ -656,7 +656,7 @@ TServerVariable = record
NativeType: mytLongblob;
Name: 'LONGTEXT';
Description: 'LONGTEXT' + CRLF +
'A TEXT column with a maximum length of 4,294,967,295 or 4GB (232 - 1) ' +
'A TEXT column with a maximum length of 4,294,967,295 or 4GB (2^32 - 1) ' +
'characters. The effective maximum length is less if the value contains ' +
'multi-byte characters. The effective maximum length of LONGTEXT columns ' +
'also depends on the configured maximum packet size in the client/server ' +
@@ -725,7 +725,7 @@ TServerVariable = record
NativeType: mytTinyblob;
Name: 'TINYBLOB';
Description: 'TINYBLOB' + CRLF +
'A BLOB column with a maximum length of 255 (28 - 1) bytes. Each ' +
'A BLOB column with a maximum length of 255 (2^8 - 1) bytes. Each ' +
'TINYBLOB value is stored using a one-byte length prefix that indicates ' +
'the number of bytes in the value.';
HasLength: False;
@@ -740,7 +740,7 @@ TServerVariable = record
NativeType: mytBlob;
Name: 'BLOB';
Description: 'BLOB[(M)]' + CRLF +
'A BLOB column with a maximum length of 65,535 (216 - 1) bytes. Each ' +
'A BLOB column with a maximum length of 65,535 (2^16 - 1) bytes. Each ' +
'BLOB value is stored using a two-byte length prefix that indicates the ' +
'number of bytes in the value. ' + CRLF +
'An optional length M can be given for this type. If this is done, MySQL ' +
@@ -758,7 +758,7 @@ TServerVariable = record
NativeType: mytMediumblob;
Name: 'MEDIUMBLOB';
Description: 'MEDIUMBLOB' + CRLF +
'A BLOB column with a maximum length of 16,777,215 (224 - 1) bytes. Each ' +
'A BLOB column with a maximum length of 16,777,215 (2^24 - 1) bytes. Each ' +
'MEDIUMBLOB value is stored using a three-byte length prefix that ' +
'indicates the number of bytes in the value.';
HasLength: False;
@@ -773,7 +773,7 @@ TServerVariable = record
NativeType: mytLongblob;
Name: 'LONGBLOB';
Description: 'LONGBLOB' + CRLF +
'A BLOB column with a maximum length of 4,294,967,295 or 4GB (232 - 1) ' +
'A BLOB column with a maximum length of 4,294,967,295 or 4GB (2^32 - 1) ' +
'bytes. The effective maximum length of LONGBLOB columns depends on the ' +
'configured maximum packet size in the client/server protocol and ' +
'available memory. Each LONGBLOB value is stored using a four-byte ' +
@@ -1008,7 +1008,7 @@ TServerVariable = record
(
Index: dtDecimal;
Name: 'DECIMAL';
Description: 'Fixed precision and scale numeric data from -10^38 +1 through 10^38 –1.';
Description: 'Fixed precision and scale numeric data from -10^38 +1 through 10^38 –1.';
HasLength: True;
RequiresLength: True;
HasBinary: False;

0 comments on commit f72a2b7

Please sign in to comment.