phpmyadmin/test/classes/Plugins/Import
Eyüp Can Akman ce12a87858
Fix #20284 - Preserve numeric strings in XML imports
When the XML file embeds the table structure, $analyses is null and
buildSql() falls back to is_numeric() to decide whether to quote. That
strips quotes from values like "01234", which silently drops the leading
zero on a varchar column and causes a duplicate-key error if the table
also contains "1234".

Add a roundtrip check: a value is still treated as numeric only when
casting it to int or float gives back the original string. "01234",
"1e10" and similar fail the roundtrip and stay quoted; plain integers
like 1 and 1234 keep their existing unquoted form.

Signed-off-by: Eyüp Can Akman <eyupcanakman@gmail.com>
2026-04-28 17:26:03 +03:00
..
ImportCsvTest.php Fix #16936 - Do not specify the collation when creating tables for imported data 2025-01-16 11:52:16 +01:00
ImportLdiTest.php Make PHPUnit's assertions stricter 2024-10-12 15:33:45 -03:00
ImportMediawikiTest.php Make PHPUnit's assertions stricter 2024-10-12 15:33:45 -03:00
ImportOdsTest.php Fix #16936 - Do not specify the collation when creating tables for imported data 2025-01-16 11:52:16 +01:00
ImportShpTest.php Fix import shp failing test with dbase enabled 2025-01-17 20:39:25 -03:00
ImportSqlTest.php Call PHPUnit static methods using static calls 2024-10-12 14:28:22 -03:00
ImportXmlTest.php Fix #20284 - Preserve numeric strings in XML imports 2026-04-28 17:26:03 +03:00