mirror of
https://github.com/vrana/adminer.git
synced 2025-08-18 04:11:27 +02:00
Improve drivers
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@1470 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -40,7 +40,7 @@ function select($result, $connection2 = null) {
|
||||
$links[$j] = $orgtable;
|
||||
}
|
||||
}
|
||||
if ($field->charsetnr == 63) {
|
||||
if ($field->charsetnr == 63) { // 63 - binary
|
||||
$blobs[$j] = true;
|
||||
}
|
||||
$types[$j] = $field->type;
|
||||
@@ -59,7 +59,7 @@ function select($result, $connection2 = null) {
|
||||
$val = " "; // some content to print a border
|
||||
} else {
|
||||
$val = h($val);
|
||||
if ($types[$key] == 254) {
|
||||
if ($types[$key] == 254) { // 254 - char
|
||||
$val = "<code>$val</code>";
|
||||
}
|
||||
}
|
||||
|
@@ -13,7 +13,8 @@ function connection() {
|
||||
* @return string
|
||||
*/
|
||||
function idf_unescape($idf) {
|
||||
return str_replace($idf[0] . $idf[0], $idf[0], substr($idf, 1, -1));
|
||||
$last = substr($idf, -1);
|
||||
return str_replace($last . $last, $last, substr($idf, 1, -1));
|
||||
}
|
||||
|
||||
/** Escape string to use inside ''
|
||||
|
Reference in New Issue
Block a user