MySQL column names, reserved and forbidden words updated, bug #1657037 Missing column type "geometry"
This commit is contained in:
@@ -8,8 +8,10 @@ $HeadURL$
|
|||||||
2007-02-12 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2007-02-12 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* libraries/database_interface.lib.php: bug #1616486 server_databases does
|
* libraries/database_interface.lib.php: bug #1616486 server_databases does
|
||||||
not show all databases
|
not show all databases
|
||||||
* libraries/sqlparser.data.php: function names updated,
|
* libraries/sqlparser.data.php: MySQL function and column names, reserved
|
||||||
|
and forbidden words updated,
|
||||||
bug #1657045 Spatial functions not supported
|
bug #1657045 Spatial functions not supported
|
||||||
|
bug #1657037 Missing column type "geometry"
|
||||||
|
|
||||||
2007-02-11 Marc Delisle <lem9@users.sourceforge.net>
|
2007-02-11 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* main.php: some links should open a new page
|
* main.php: some links should open a new page
|
||||||
|
@@ -370,6 +370,7 @@ $PMA_SQPdata_column_attrib = array (
|
|||||||
$PMA_SQPdata_column_attrib_cnt = 29;
|
$PMA_SQPdata_column_attrib_cnt = 29;
|
||||||
|
|
||||||
$PMA_SQPdata_reserved_word = array (
|
$PMA_SQPdata_reserved_word = array (
|
||||||
|
'ACCESSIBLE', // 5.1
|
||||||
'ACTION',
|
'ACTION',
|
||||||
'ADD',
|
'ADD',
|
||||||
'AFTER',
|
'AFTER',
|
||||||
@@ -498,6 +499,7 @@ $PMA_SQPdata_reserved_word = array (
|
|||||||
'LEVEL',
|
'LEVEL',
|
||||||
'LIKE',
|
'LIKE',
|
||||||
'LIMIT',
|
'LIMIT',
|
||||||
|
'LINEAR', // 5.1
|
||||||
'LINES',
|
'LINES',
|
||||||
'LOAD',
|
'LOAD',
|
||||||
'LOCAL',
|
'LOCAL',
|
||||||
@@ -559,7 +561,10 @@ $PMA_SQPdata_reserved_word = array (
|
|||||||
'RAID_CHUNKS',
|
'RAID_CHUNKS',
|
||||||
'RAID_CHUNKSIZE',
|
'RAID_CHUNKSIZE',
|
||||||
'RAID_TYPE',
|
'RAID_TYPE',
|
||||||
|
'RANGE', // 5.1
|
||||||
'READ',
|
'READ',
|
||||||
|
'READ_ONLY', // 5.1
|
||||||
|
'READ_WRITE', // 5.1
|
||||||
'REFERENCES',
|
'REFERENCES',
|
||||||
'REGEXP',
|
'REGEXP',
|
||||||
'RELOAD',
|
'RELOAD',
|
||||||
@@ -649,11 +654,12 @@ $PMA_SQPdata_reserved_word = array (
|
|||||||
'YEAR_MONTH'
|
'YEAR_MONTH'
|
||||||
);
|
);
|
||||||
//$PMA_SQPdata_reserved_word_cnt = count($PMA_SQPdata_reserved_word);
|
//$PMA_SQPdata_reserved_word_cnt = count($PMA_SQPdata_reserved_word);
|
||||||
$PMA_SQPdata_reserved_word_cnt = 275;
|
$PMA_SQPdata_reserved_word_cnt = 280;
|
||||||
|
|
||||||
// words forbidden to be used as column or table name,
|
// words forbidden to be used as column or table name,
|
||||||
// as seen in http://dev.mysql.com/doc/mysql/en/reserved-words.html
|
// as seen in http://dev.mysql.com/doc/mysql/en/reserved-words.html
|
||||||
$PMA_SQPdata_forbidden_word = array (
|
$PMA_SQPdata_forbidden_word = array (
|
||||||
|
'ACCESSIBLE', // 5.1
|
||||||
'ACTION',
|
'ACTION',
|
||||||
'ADD',
|
'ADD',
|
||||||
'AFTER',
|
'AFTER',
|
||||||
@@ -867,6 +873,7 @@ $PMA_SQPdata_forbidden_word = array (
|
|||||||
'LEVEL',
|
'LEVEL',
|
||||||
'LIKE',
|
'LIKE',
|
||||||
'LIMIT',
|
'LIMIT',
|
||||||
|
'LINEAR', // 5.1
|
||||||
'LINES',
|
'LINES',
|
||||||
'LINESTRING',
|
'LINESTRING',
|
||||||
'LOAD',
|
'LOAD',
|
||||||
@@ -974,7 +981,10 @@ $PMA_SQPdata_forbidden_word = array (
|
|||||||
'RAID_CHUNKS',
|
'RAID_CHUNKS',
|
||||||
'RAID_CHUNKSIZE',
|
'RAID_CHUNKSIZE',
|
||||||
'RAID_TYPE',
|
'RAID_TYPE',
|
||||||
|
'RANGE', // 5.1
|
||||||
'READ',
|
'READ',
|
||||||
|
'READ_ONLY', // 5.1
|
||||||
|
'READ_WRITE', // 5.1
|
||||||
'READS',
|
'READS',
|
||||||
'REAL',
|
'REAL',
|
||||||
'RECOVER',
|
'RECOVER',
|
||||||
@@ -1135,7 +1145,7 @@ $PMA_SQPdata_forbidden_word = array (
|
|||||||
'ZEROFILL'
|
'ZEROFILL'
|
||||||
);
|
);
|
||||||
// echo count($PMA_SQPdata_forbidden_word);
|
// echo count($PMA_SQPdata_forbidden_word);
|
||||||
$PMA_SQPdata_forbidden_word_cnt = 479;
|
$PMA_SQPdata_forbidden_word_cnt = 484;
|
||||||
|
|
||||||
$PMA_SQPdata_column_type = array (
|
$PMA_SQPdata_column_type = array (
|
||||||
'BIGINT',
|
'BIGINT',
|
||||||
@@ -1155,6 +1165,8 @@ $PMA_SQPdata_column_type = array (
|
|||||||
'FLOAT',
|
'FLOAT',
|
||||||
'FLOAT4',
|
'FLOAT4',
|
||||||
'FLOAT8',
|
'FLOAT8',
|
||||||
|
'GEOMETRY', // spatial
|
||||||
|
'GEOMETRYCOLLECTION', // spatial
|
||||||
'INT',
|
'INT',
|
||||||
'INT1',
|
'INT1',
|
||||||
'INT2',
|
'INT2',
|
||||||
@@ -1162,6 +1174,7 @@ $PMA_SQPdata_column_type = array (
|
|||||||
'INT4',
|
'INT4',
|
||||||
'INT8',
|
'INT8',
|
||||||
'INTEGER',
|
'INTEGER',
|
||||||
|
'LINESTRING', // spatial
|
||||||
'LONG',
|
'LONG',
|
||||||
'LONGBLOB',
|
'LONGBLOB',
|
||||||
'LONGTEXT',
|
'LONGTEXT',
|
||||||
@@ -1169,10 +1182,15 @@ $PMA_SQPdata_column_type = array (
|
|||||||
'MEDIUMINT',
|
'MEDIUMINT',
|
||||||
'MEDIUMTEXT',
|
'MEDIUMTEXT',
|
||||||
'MIDDLEINT',
|
'MIDDLEINT',
|
||||||
|
'MULTILINESTRING', // spatial
|
||||||
|
'MULTIPOINT', // spatial
|
||||||
|
'MULTIPOLYGON', // spatial
|
||||||
'NCHAR',
|
'NCHAR',
|
||||||
'NUMERIC',
|
'NUMERIC',
|
||||||
|
'POINT', // spatial
|
||||||
|
'POLYGON', // spatial
|
||||||
'REAL',
|
'REAL',
|
||||||
'SERIAL', //BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE
|
'SERIAL', // alsias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY
|
||||||
'SET',
|
'SET',
|
||||||
'SMALLINT',
|
'SMALLINT',
|
||||||
'TEXT',
|
'TEXT',
|
||||||
@@ -1186,7 +1204,7 @@ $PMA_SQPdata_column_type = array (
|
|||||||
'YEAR'
|
'YEAR'
|
||||||
);
|
);
|
||||||
//$PMA_SQPdata_column_type_cnt = count($PMA_SQPdata_column_type);
|
//$PMA_SQPdata_column_type_cnt = count($PMA_SQPdata_column_type);
|
||||||
$PMA_SQPdata_column_type_cnt = 46;
|
$PMA_SQPdata_column_type_cnt = 54;
|
||||||
|
|
||||||
// check counts
|
// check counts
|
||||||
/*
|
/*
|
||||||
|
Reference in New Issue
Block a user