function names updated, bug #1657045 Spatial functions not supported

This commit is contained in:
Sebastian Mendel
2007-02-12 16:28:42 +00:00
parent 3e89fd7949
commit 316305923a
2 changed files with 94 additions and 24 deletions

View File

@@ -8,6 +8,8 @@ $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,
bug #1657045 Spatial functions not supported
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

View File

@@ -29,12 +29,18 @@ $PMA_SQPdata_function_name = array (
'ADDTIME', 'ADDTIME',
'AES_DECRYPT', 'AES_DECRYPT',
'AES_ENCRYPT', 'AES_ENCRYPT',
'AREA', // polygon-property-functions.html 'AREA', // Area() polygon-property-functions.html
'ASBINARY', // AsBinary()
'ASCII', 'ASCII',
'ASIN', 'ASIN',
'ASTEXT', // AsText()
'ATAN', 'ATAN',
'ATAN2', 'ATAN2',
'AVG', 'AVG',
'BDMPOLYFROMTEXT', // BdMPolyFromText()
'BDMPOLYFROMWKB', // BdMPolyFromWKB()
'BDPOLYFROMTEXT', // BdPolyFromText()
'BDPOLYFROMWKB', // BdPolyFromWKB()
'BENCHMARK', 'BENCHMARK',
'BIN', 'BIN',
'BIT_AND', 'BIT_AND',
@@ -42,11 +48,12 @@ $PMA_SQPdata_function_name = array (
'BIT_LENGTH', 'BIT_LENGTH',
'BIT_OR', 'BIT_OR',
'BIT_XOR', // group-by-functions.html 'BIT_XOR', // group-by-functions.html
'Boundary', // general-geometry-property-functions.html 'BOUNDARY', // Boundary() general-geometry-property-functions.html
'BUFFER', // Buffer()
'CAST', 'CAST',
'CEIL', 'CEIL',
'CEILING', 'CEILING',
'CENTROID', // multipolygon-property-functions.html 'CENTROID', // Centroid() multipolygon-property-functions.html
'CHAR', // string-functions.html 'CHAR', // string-functions.html
'CHARACTER_LENGTH', 'CHARACTER_LENGTH',
'CHARSET', // information-functions.html 'CHARSET', // information-functions.html
@@ -58,13 +65,16 @@ $PMA_SQPdata_function_name = array (
'CONCAT', 'CONCAT',
'CONCAT_WS', 'CONCAT_WS',
'CONNECTION_ID', 'CONNECTION_ID',
'CONTAINS', // Contains()
'CONV', 'CONV',
'CONVERT', 'CONVERT',
'CONVERT_TZ', 'CONVERT_TZ',
'CONVEXHULL', // ConvexHull()
'COS', 'COS',
'COT', 'COT',
'COUNT', 'COUNT',
'CRC32', // mathematical-functions.html 'CRC32', // mathematical-functions.html
'CROSSES', // Crosses()
'CURDATE', 'CURDATE',
'CURRENT_DATE', 'CURRENT_DATE',
'CURRENT_TIME', 'CURRENT_TIME',
@@ -88,17 +98,21 @@ $PMA_SQPdata_function_name = array (
'DEGREES', 'DEGREES',
'DES_DECRYPT', 'DES_DECRYPT',
'DES_ENCRYPT', 'DES_ENCRYPT',
'DIMENSION', // general-geometry-property-functions.html 'DIFFERENCE', // Difference()
'DIMENSION', // Dimension() general-geometry-property-functions.html
'DISJOINT', // Disjoint()
'DISTANCE', // Distance()
'ELT', 'ELT',
'ENCODE', 'ENCODE',
'ENCRYPT', 'ENCRYPT',
'ENDPOINT', // linestring-property-functions.html 'ENDPOINT', // EndPoint() linestring-property-functions.html
'ENVELOPE', // general-geometry-property-functions.html 'ENVELOPE', // Envelope() general-geometry-property-functions.html
'EQUALS', // Equals()
'EXP', 'EXP',
'EXPORT_SET', 'EXPORT_SET',
'EXTERIORRING', // polygon-property-functions.html 'EXTERIORRING', // ExteriorRing() polygon-property-functions.html
'EXTRACT', 'EXTRACT',
'EXTRACTVALUE', // xml-functions.html 'EXTRACTVALUE', // ExtractValue() xml-functions.html
'FIELD', 'FIELD',
'FIND_IN_SET', 'FIND_IN_SET',
'FLOOR', 'FLOOR',
@@ -106,11 +120,20 @@ $PMA_SQPdata_function_name = array (
'FOUND_ROWS', 'FOUND_ROWS',
'FROM_DAYS', 'FROM_DAYS',
'FROM_UNIXTIME', 'FROM_UNIXTIME',
'GEOMETRYN', // geometrycollection-property-functions.html 'GEOMCOLLFROMTEXT', // GeomCollFromText()
'GEOMETRYTYPE', // general-geometry-property-functions.html 'GEOMCOLLFROMWKB', // GeomCollFromWKB()
'GEOMETRYCOLLECTION', // GeometryCollection()
'GEOMETRYCOLLECTIONFROMTEXT', // GeometryCollectionFromText()
'GEOMETRYCOLLECTIONFROMWKB', // GeometryCollectionFromWKB()
'GEOMETRYFROMTEXT', // GeometryFromText()
'GEOMETRYFROMWKB', // GeometryFromWKB()
'GEOMETRYN', // GeometryN() geometrycollection-property-functions.html
'GEOMETRYTYPE', // GeometryType() general-geometry-property-functions.html
'GEOMFROMTEXT', // GeomFromText()
'GEOMFROMWKB', // GeomFromWKB()
'GET_FORMAT', 'GET_FORMAT',
'GET_LOCK', 'GET_LOCK',
'GLENGTH', // linestring-property-functions.html 'GLENGTH', // GLength() linestring-property-functions.html
'GREATEST', 'GREATEST',
'GROUP_CONCAT', 'GROUP_CONCAT',
'GROUP_UNIQUE_USERS', 'GROUP_UNIQUE_USERS',
@@ -122,13 +145,15 @@ $PMA_SQPdata_function_name = array (
'INET_NTOA', 'INET_NTOA',
'INSERT', // string-functions.html 'INSERT', // string-functions.html
'INSTR', 'INSTR',
'INTERIORRINGN', // polygon-property-functions.html 'INTERIORRINGN', // InteriorRingN() polygon-property-functions.html
'INTERSECTION', // Intersection()
'INTERSECTS', // Intersects()
'INTERVAL', 'INTERVAL',
'ISCLOSED', // multilinestring-property-functions.html 'ISCLOSED', // IsClosed() multilinestring-property-functions.html
'ISEMPTY', // general-geometry-property-functions.html 'ISEMPTY', // IsEmpty() general-geometry-property-functions.html
'ISNULL', 'ISNULL',
'ISRING', // linestring-property-functions.html 'ISRING', // IsRing() linestring-property-functions.html
'ISSIMPLE', // general-geometry-property-functions.html 'ISSIMPLE', // IsSimple() general-geometry-property-functions.html
'IS_FREE_LOCK', 'IS_FREE_LOCK',
'IS_USED_LOCK', // miscellaneous-functions.html 'IS_USED_LOCK', // miscellaneous-functions.html
'LAST_DAY', 'LAST_DAY',
@@ -137,6 +162,11 @@ $PMA_SQPdata_function_name = array (
'LEAST', 'LEAST',
'LEFT', 'LEFT',
'LENGTH', 'LENGTH',
'LINEFROMTEXT', // LineFromText()
'LINEFROMWKB', // LineFromWKB()
'LINESTRING', // LineString()
'LINESTRINGFROMTEXT', // LineStringFromText()
'LINESTRINGFROMWKB', // LineStringFromWKB()
'LN', 'LN',
'LOAD_FILE', 'LOAD_FILE',
'LOCALTIME', 'LOCALTIME',
@@ -153,29 +183,62 @@ $PMA_SQPdata_function_name = array (
'MAKE_SET', 'MAKE_SET',
'MASTER_POS_WAIT', 'MASTER_POS_WAIT',
'MAX', 'MAX',
'MBRCONTAINS', // MBRContains()
'MBRDISJOINT', // MBRDisjoint()
'MBREQUAL', // MBREqual()
'MBRINTERSECTS', // MBRIntersects()
'MBROVERLAPS', // MBROverlaps()
'MBRTOUCHES', // MBRTouches()
'MBRWITHIN', // MBRWithin()
'MD5', 'MD5',
'MICROSECOND', 'MICROSECOND',
'MID', 'MID',
'MIN', 'MIN',
'MINUTE', 'MINUTE',
'MLINEFROMTEXT', // MLineFromText()
'MLINEFROMWKB', // MLineFromWKB()
'MOD', 'MOD',
'MONTH', 'MONTH',
'MONTHNAME', 'MONTHNAME',
'NOW', 'NOW',
'MPOINTFROMTEXT', // MPointFromText()
'MPOINTFROMWKB', // MPointFromWKB()
'MPOLYFROMTEXT', // MPolyFromText()
'MPOLYFROMWKB', // MPolyFromWKB()
'MULTILINESTRING', // MultiLineString()
'MULTILINESTRINGFROMTEXT', // MultiLineStringFromText()
'MULTILINESTRINGFROMWKB', // MultiLineStringFromWKB()
'MULTIPOINT', // MultiPoint()
'MULTIPOINTFROMTEXT', // MultiPointFromText()
'MULTIPOINTFROMWKB', // MultiPointFromWKB()
'MULTIPOLYGON', // MultiPolygon()
'MULTIPOLYGONFROMTEXT', // MultiPolygonFromText()
'MULTIPOLYGONFROMWKB', // MultiPolygonFromWKB()
'NAME_CONST', // NAME_CONST()
'NOW', // NOW()
'NULLIF', 'NULLIF',
'NUMGEOMETRIES', // geometrycollection-property-functions.html 'NUMGEOMETRIES', // NumGeometries() geometrycollection-property-functions.html
'NUMINTERIORRINGS', // polygon-property-functions.html 'NUMINTERIORRINGS', // NumInteriorRings() polygon-property-functions.html
'NUMPOINTS', // linestring-property-functions.html 'NUMPOINTS', // NumPoints() linestring-property-functions.html
'OCT', 'OCT',
'OCTET_LENGTH', 'OCTET_LENGTH',
'OLD_PASSWORD', 'OLD_PASSWORD',
'ORD', 'ORD',
'OVERLAPS', // Overlaps()
'PASSWORD', 'PASSWORD',
'PERIOD_ADD', 'PERIOD_ADD',
'PERIOD_DIFF', 'PERIOD_DIFF',
'PI', 'PI',
'POINTN', // linestring-property-functions.html 'POINT', // Point()
'POINTONSURFACE', // multipolygon-property-functions.html 'POINTFROMTEXT', // PointFromText()
'POINTFROMWKB', // PointFromWKB()
'POINTN', // PointN() inestring-property-functions.html
'POINTONSURFACE', // PointOnSurface() multipolygon-property-functions.html
'POLYFROMTEXT', // PolyFromText()
'POLYFROMWKB', // PolyFromWKB()
'POLYGON', // Polygon()
'POLYGONFROMTEXT', // PolygonFromText()
'POLYGONFROMWKB', // PolygonFromWKB()
'POSITION', 'POSITION',
'POW', 'POW',
'POWER', 'POWER',
@@ -183,6 +246,7 @@ $PMA_SQPdata_function_name = array (
'QUOTE', 'QUOTE',
'RADIANS', 'RADIANS',
'RAND', 'RAND',
'RELATED', // Related()
'RELEASE_LOCK', 'RELEASE_LOCK',
'REPEAT', 'REPEAT',
'REPLACE', // string-functions.html 'REPLACE', // string-functions.html
@@ -205,7 +269,7 @@ $PMA_SQPdata_function_name = array (
'SPACE', 'SPACE',
'SQRT', 'SQRT',
'SRID', // general-geometry-property-functions.html 'SRID', // general-geometry-property-functions.html
'STARTPOINT', // linestring-property-functions.html 'STARTPOINT', // StartPoint() linestring-property-functions.html
'STD', 'STD',
'STDDEV', 'STDDEV',
'STDDEV_POP', // group-by-functions.html 'STDDEV_POP', // group-by-functions.html
@@ -213,10 +277,12 @@ $PMA_SQPdata_function_name = array (
'STRCMP', 'STRCMP',
'STR_TO_DATE', 'STR_TO_DATE',
'SUBDATE', 'SUBDATE',
'SUBSTR',
'SUBSTRING', 'SUBSTRING',
'SUBSTRING_INDEX', 'SUBSTRING_INDEX',
'SUBTIME', 'SUBTIME',
'SUM', 'SUM',
'SYMDIFFERENCE', // SymDifference()
'SYSDATE', 'SYSDATE',
'SYSTEM_USER', 'SYSTEM_USER',
'TAN', 'TAN',
@@ -227,6 +293,7 @@ $PMA_SQPdata_function_name = array (
'TIMESTAMPDIFF', 'TIMESTAMPDIFF',
'TIME_FORMAT', 'TIME_FORMAT',
'TIME_TO_SEC', 'TIME_TO_SEC',
'TOUCHES', // Touches()
'TO_DAYS', 'TO_DAYS',
'TRIM', 'TRIM',
'TRUNCATE', // mathematical-functions.html 'TRUNCATE', // mathematical-functions.html
@@ -236,7 +303,7 @@ $PMA_SQPdata_function_name = array (
'UNHEX', // string-functions.html 'UNHEX', // string-functions.html
'UNIQUE_USERS', 'UNIQUE_USERS',
'UNIX_TIMESTAMP', 'UNIX_TIMESTAMP',
'UPDATEXML', // xml-functions.html 'UPDATEXML', // UpdateXML() xml-functions.html
'UPPER', 'UPPER',
'USER', 'USER',
'UTC_DATE', 'UTC_DATE',
@@ -250,13 +317,14 @@ $PMA_SQPdata_function_name = array (
'WEEK', 'WEEK',
'WEEKDAY', 'WEEKDAY',
'WEEKOFYEAR', 'WEEKOFYEAR',
'WITHIN', // Within()
'X', // point-property-functions.html 'X', // point-property-functions.html
'Y', // point-property-functions.html 'Y', // point-property-functions.html
'YEAR', 'YEAR',
'YEARWEEK' 'YEARWEEK'
); );
//$PMA_SQPdata_function_name_cnt = count($PMA_SQPdata_function_name); //$PMA_SQPdata_function_name_cnt = count($PMA_SQPdata_function_name);
$PMA_SQPdata_function_name_cnt = 231; $PMA_SQPdata_function_name_cnt = 299;
// DEBUG // DEBUG
//$test_PMA_SQPdata_function_name = $PMA_SQPdata_function_name; //$test_PMA_SQPdata_function_name = $PMA_SQPdata_function_name;
//sort($PMA_SQPdata_function_name); //sort($PMA_SQPdata_function_name);