Merge remote branch 'origin/master'
This commit is contained in:
@@ -70,7 +70,10 @@ $(document).ready(function() {
|
||||
// found results
|
||||
$("#sqlqueryresults").html(response);
|
||||
$("#sqlqueryresults").trigger('appendAnchor');
|
||||
$('#tbl_search_form').hide();
|
||||
$('#tbl_search_form')
|
||||
// work around for bug #3168569 - Issue on toggling the "Hide search criteria" in chrome.
|
||||
.slideToggle()
|
||||
.hide();
|
||||
$('#togglesearchformlink')
|
||||
// always start with the Show message
|
||||
.text(PMA_messages['strShowSearchCriteria'])
|
||||
|
@@ -370,10 +370,31 @@ foreach ($rows as $row_id => $vrow) {
|
||||
$table_fields[$i]['Field_title'] = $table_fields[$i]['Field_html'];
|
||||
}
|
||||
|
||||
// The type column
|
||||
$table_fields[$i]['is_binary'] = stristr($table_fields[$i]['Type'], 'binary');
|
||||
$table_fields[$i]['is_blob'] = stristr($table_fields[$i]['Type'], 'blob');
|
||||
$table_fields[$i]['is_char'] = stristr($table_fields[$i]['Type'], 'char');
|
||||
// The type column.
|
||||
// Fix for bug #3152931 'ENUM and SET cannot have "Binary" option'
|
||||
// If check to ensure types such as "enum('one','two','binary',..)" or
|
||||
// "enum('one','two','varbinary',..)" are not categorized as binary.
|
||||
if (stripos($table_fields[$i]['Type'], 'binary') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'varbinary') === 0) {
|
||||
$table_fields[$i]['is_binary'] = stristr($table_fields[$i]['Type'], 'binary');
|
||||
}
|
||||
|
||||
// If check to ensure types such as "enum('one','two','blob',..)" or
|
||||
// "enum('one','two','tinyblob',..)" etc. are not categorized as blob.
|
||||
if (stripos($table_fields[$i]['Type'], 'blob') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'tinyblob') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'mediumblob') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'longblob') === 0) {
|
||||
$table_fields[$i]['is_blob'] = stristr($table_fields[$i]['Type'], 'blob');
|
||||
}
|
||||
|
||||
// If check to ensure types such as "enum('one','two','char',..)" or
|
||||
// "enum('one','two','varchar',..)" are not categorized as char.
|
||||
if (stripos($table_fields[$i]['Type'], 'char') === 0
|
||||
|| stripos($table_fields[$i]['Type'], 'varchar') === 0) {
|
||||
$table_fields[$i]['is_char'] = stristr($table_fields[$i]['Type'], 'char');
|
||||
}
|
||||
|
||||
$table_fields[$i]['first_timestamp'] = false;
|
||||
switch ($table_fields[$i]['True_Type']) {
|
||||
case 'set':
|
||||
|
Reference in New Issue
Block a user