From f4f3d46989cc18f1ccfbca193788bd4de0018305 Mon Sep 17 00:00:00 2001 From: Piotr Przybylski Date: Fri, 2 Sep 2011 15:21:18 +0200 Subject: [PATCH 1/2] length is unknown for geometry fields, make enough space to edit very simple WKTs (text fields were 4 characters wide) --- tbl_change.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tbl_change.php b/tbl_change.php index 6024d80425..5395ddabde 100644 --- a/tbl_change.php +++ b/tbl_change.php @@ -458,6 +458,10 @@ foreach ($rows as $row_id => $vrow) { if (-1 === $field['len']) { $field['len'] = PMA_DBI_field_len($vresult, $i); + // length is unknown for geometry fields, make enough space to edit very simple WKTs + if (-1 === $field['len']) { + $field['len'] = 30; + } } //Call validation when the form submited... $unnullify_trigger = $chg_evt_handler . "=\"return verificationsAfterFieldChange('". PMA_escapeJsString($field['Field_md5']) . "', '" From 9611e049c331fd6caa03e2b481b527bd9f7c22af Mon Sep 17 00:00:00 2001 From: Dieter Adriaenssens Date: Fri, 2 Sep 2011 15:48:15 +0200 Subject: [PATCH 2/2] typos --- libraries/database_interface.lib.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/database_interface.lib.php b/libraries/database_interface.lib.php index c3461116b7..37103f916b 100644 --- a/libraries/database_interface.lib.php +++ b/libraries/database_interface.lib.php @@ -1063,7 +1063,7 @@ function PMA_DBI_get_columns($database, $table, $column = null, $full = false, $ } /** -* Returns SQL for fetching informatin on table indexes (SHOW INDEXES) +* Returns SQL for fetching information on table indexes (SHOW INDEXES) * * @param string $database name of database * @param string $table name of the table whose indexes are to be retreived @@ -1104,10 +1104,10 @@ function PMA_DBI_get_table_indexes_sql($database, $table, $where = null) } /** -* Returns indexes od a table +* Returns indexes of a table * * @param string $database name of database -* @param string $table name of the table whose indexes are to be retreived +* @param string $table name of the table whose indexes are to be retrieved * @param mixed $link mysql link resource * @return array $indexes */