1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 00:54:08 +02:00

Indicate NULL values in XML export (thanks to Karel Seidl)

This commit is contained in:
Jakub Vrana
2012-08-14 09:12:43 -07:00
parent 2a97e02cdd
commit 7674576dcb

View File

@@ -37,7 +37,7 @@ class AdminerDumpXml {
while ($row = $result->fetch_assoc()) {
echo "\t<table name='" . h($table) . "'>\n";
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";
}