Better descriptions for Drizzle column types
This commit is contained in:
parent
69b3ccf203
commit
e8a58dddf0
@ -234,23 +234,26 @@ if ($cfg['ShowFunctionFields']) {
|
||||
*/
|
||||
function PMA_supportedDataTypesDescriptions()
|
||||
{
|
||||
// if possible, for easy translation these strings should be the same as for MySQL
|
||||
return array(
|
||||
'INTEGER' => __('Most common integer.'),
|
||||
'BIGINT' => __('Larger-range integer.'),
|
||||
'DECIMAL' => __('Fixed precision number.'),
|
||||
'DOUBLE' => __('Systems native double type.'),
|
||||
'BOOLEAN' => __('True or false.'),
|
||||
'SERIAL' => __('A number is inserted in increasing order as rows are inserted into the table.'),
|
||||
'UUID' => __('Stores Universally Unique Identifiers (UUID).'),
|
||||
'DATE' => __('Dates only.'),
|
||||
'DATETIME' => __('Both date and time.'),
|
||||
'TIMESTAMP' => __('Both date and time.'),
|
||||
'TIME' => __('Time of day.'),
|
||||
'VARCHAR' => __('Variable length data.'),
|
||||
'TEXT' => __('Text up to 2^16 characters.'),
|
||||
'VARBINARY' => __('Variable length data.'),
|
||||
'BLOB' => __('Data up to 2^16 characters. Uses a binary collation for all index usage.'),
|
||||
'ENUM' => __('Static lists of strings.'),
|
||||
'INTEGER' => __('A 4-byte integer, range is -2,147,483,648 to 2,147,483,647'),
|
||||
'BIGINT' => __('An 8-byte integer, range is -9,223,372,036,854,775,808 to 9,223,372,036,854,775,807'),
|
||||
'DECIMAL' => __('A fixed-point number (M, D) - the maximum number of digits (M) is 65 (default 10), the maximum number of decimals (D) is 30 (default 0)'),
|
||||
'DOUBLE' => __("A system's default double-precision floating-point number"),
|
||||
'BOOLEAN' => __('True or false'),
|
||||
// Drizzle doesn't have UNSIGNED types
|
||||
'SERIAL' => __('An alias for BIGINT NOT NULL AUTO_INCREMENT UNIQUE'),
|
||||
'UUID' => __('Stores a Universally Unique Identifier (UUID)'),
|
||||
'DATE' => __("A date, supported range is '0001-01-01' to '9999-12-31'"),
|
||||
'DATETIME' => __("A date and time combination, supported range is '0001-01-01 00:00:00' to '9999-12-31 23:59:59'"),
|
||||
'TIMESTAMP' => __("A timestamp, range is '0001-01-01 00:00:00' UTC to '9999-12-31 23:59:59' UTC, TIMESTAMP(6) can store microseconds"),
|
||||
'TIME' => __("A time, range is '00:00:00' to '23:59:59'"),
|
||||
'VARCHAR' => __('A variable-length (0-16,383) string'),
|
||||
'TEXT' => __('A TEXT column with a maximum length of 65,535 (2^16 - 1) characters, stored with a two-byte prefix indicating the length of the value in bytes'),
|
||||
'VARBINARY' => __('A variable-length (0-65,535) string, uses binary collation for all comparisons'),
|
||||
'BLOB' => __('A BLOB column with a maximum length of 65,535 (2^16 - 1) bytes, stored with a four-byte prefix indicating the length of the value'),
|
||||
// there is no limit on ENUM length
|
||||
'ENUM' => __("An enumeration, chosen from the list of defined values"),
|
||||
);
|
||||
} // end PMA_supportedDataTypesDescriptions()
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user