|
@@ -986,10 +986,21 @@ class TableAcl extends Core_AclBase {
|
|
|
// [null] => 1
|
|
// [null] => 1
|
|
|
// [default] =>
|
|
// [default] =>
|
|
|
// [simpleType] => linestring
|
|
// [simpleType] => linestring
|
|
|
- if ('geometry' == $field['type'] && !empty($field['simpleType'])) {
|
|
|
|
|
- switch ($field['simpleType']) {
|
|
|
|
|
- case 'gml:LineStringPropertyType': $this->_types[ $fieldName ][ 'type' ] = 'linestring'; break;
|
|
|
|
|
|
|
+ if ('geometry' == $field['type']) {
|
|
|
|
|
+ if (!empty($field['simpleType'])) {
|
|
|
|
|
+ switch ($field['simpleType']) {
|
|
|
|
|
+ case 'gml:LineStringPropertyType': $this->_types[ $fieldName ][ 'type' ] = 'linestring'; break;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
+ $dbName = DB::getPDO()->getDatabaseName();
|
|
|
|
|
+ $tableName = $this->getName();
|
|
|
|
|
+ $geomType = DB::getPDO()->fetchValue("select DATA_TYPE
|
|
|
|
|
+ from `information_schema`.`COLUMNS`
|
|
|
|
|
+ where TABLE_SCHEMA='{$dbName}'
|
|
|
|
|
+ and TABLE_NAME='{$tableName}'
|
|
|
|
|
+ and COLUMN_NAME='{$fieldName}'
|
|
|
|
|
+ ");
|
|
|
|
|
+ if (!empty($geomType)) $this->_types[ $fieldName ][ 'type' ] = $geomType;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|