avoid adding BINARY and VARBINARY twice in the drop-down list
This commit is contained in:
@@ -9,6 +9,8 @@ $Source$
|
|||||||
* main.php, server_privileges.php, libraries/common.lib.php:
|
* main.php, server_privileges.php, libraries/common.lib.php:
|
||||||
replace charset introducers by CONVERT USING,
|
replace charset introducers by CONVERT USING,
|
||||||
to support servers where the mysql.* tables are not in latin1
|
to support servers where the mysql.* tables are not in latin1
|
||||||
|
* libraries/database_interface.lib.php: do not add BINARY and VARBINARY
|
||||||
|
twice in the drop-down list of field types
|
||||||
|
|
||||||
2004-09-02 Alexander M. Turek <me@derrabus.de>
|
2004-09-02 Alexander M. Turek <me@derrabus.de>
|
||||||
* Documentation.html: Typos; added a note about the deprecated MySQL
|
* Documentation.html: Typos; added a note about the deprecated MySQL
|
||||||
|
@@ -157,8 +157,12 @@ function PMA_DBI_postConnect($link) {
|
|||||||
$collation_connection = PMA_DBI_get_variable('collation_connection', PMA_DBI_GETVAR_SESSION, $link);
|
$collation_connection = PMA_DBI_get_variable('collation_connection', PMA_DBI_GETVAR_SESSION, $link);
|
||||||
|
|
||||||
// Add some field types to the list
|
// Add some field types to the list
|
||||||
$GLOBALS['cfg']['ColumnTypes'][] = 'BINARY';
|
// (we pass twice here; feel free to code something better :)
|
||||||
$GLOBALS['cfg']['ColumnTypes'][] = 'VARBINARY';
|
if (!defined('PMA_ADDED_FIELD_TYPES')) {
|
||||||
|
$GLOBALS['cfg']['ColumnTypes'][] = 'BINARY';
|
||||||
|
$GLOBALS['cfg']['ColumnTypes'][] = 'VARBINARY';
|
||||||
|
define('PMA_ADDED_FIELD_TYPES',1);
|
||||||
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
require_once('./libraries/charset_conversion.lib.php');
|
require_once('./libraries/charset_conversion.lib.php');
|
||||||
|
Reference in New Issue
Block a user