mirror of
https://github.com/vrana/adminer.git
synced 2025-08-13 10:04:07 +02:00
Indicate NULL values in XML export (thanks to Karel Seidl)
This commit is contained in:
@@ -37,7 +37,7 @@ class AdminerDumpXml {
|
|||||||
while ($row = $result->fetch_assoc()) {
|
while ($row = $result->fetch_assoc()) {
|
||||||
echo "\t<table name='" . h($table) . "'>\n";
|
echo "\t<table name='" . h($table) . "'>\n";
|
||||||
foreach ($row as $key => $val) {
|
foreach ($row as $key => $val) {
|
||||||
echo "\t\t<column name='" . h($key) . "'>" . h($val) . "</column>\n";
|
echo "\t\t<column name='" . h($key) . "'" . (isset($val) ? "" : " null='null'") . ">" . h($val) . "</column>\n";
|
||||||
}
|
}
|
||||||
echo "\t</table>\n";
|
echo "\t</table>\n";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user