phpmyadmin/test/classes/Plugins
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
..
Auth Fix AuthenticationSignonTest failing test with PHP 8.5 2025-08-17 18:14:17 -03:00
Export Fix #19084 - Skip CREATE DATABASE when exporting data only 2026-04-11 11:38:50 +02:00
Import Fix #20284 - Preserve numeric strings in XML imports 2026-04-28 17:26:03 +03:00
Schema Make PHPUnit's assertions stricter 2024-10-12 15:33:45 -03:00
Transformations Add covers annotations to TransformationPluginsTest 2024-10-15 02:57:54 -03:00
TwoFactor Make PHPUnit's assertions stricter 2024-10-12 15:33:45 -03:00