Merge remote-tracking branch 'origin/master'

This commit is contained in:
Michal Čihař 2012-03-29 20:30:40 +02:00
commit 081da1c523
3 changed files with 7 additions and 2 deletions

View File

@ -17,6 +17,7 @@ phpMyAdmin - ChangeLog
3.5.1.0 (not yet released)
- bug #3510784 [edit] Limit clause ignored when sort order is remembered
- bug #3511471 [interface] View name not seen in navi panel (MySQL 5.1)
3.5.0.0 (not yet released)
+ rfe #2021981 [interface] Add support for mass prefix change.

View File

@ -823,6 +823,7 @@ function PMA_getTableList($db, $tables = null, $limit_offset = 0, $limit_count =
if ($GLOBALS['cfg']['ShowTooltipAliasTB']
&& $GLOBALS['cfg']['ShowTooltipAliasTB'] !== 'nested'
&& $table['Comment'] // do not switch if the comment is empty
&& $table['Comment'] != 'VIEW' // happens in MySQL 5.1
) {
// switch tooltip and name
$table['disp_name'] = $table['Comment'];

View File

@ -67,8 +67,11 @@ function PMA_DBI_real_connect($link, $host, $user, $password, $dbname, $server_p
{
global $cfg;
if ($cfg['PersistentConnections'] || $persistent) {
$host = 'p:' . $host;
// mysqli persistent connections only on PHP 5.3+
if (PMA_PHP_INT_VERSION >= 50300) {
if ($cfg['PersistentConnections'] || $persistent) {
$host = 'p:' . $host;
}
}
if ($client_flags === null) {
return @mysqli_real_connect(