#20493·phpmyadmin

[6.0]: Issues after DUCKDB engine is removed

Author: liviuconcioiuCreated Sep 22, 2026Updated Sep 22, 2026
LabelsBug

Describe the bug

  1. Install DUCKDB engine
  2. Create a test table with DUCKB engine
sql
CREATE TABLE sales ( 
            id BIGINT PRIMARY KEY, 
            product VARCHAR(64), 
            amount DECIMAL(12,2), 
            sold_at TIMESTAMP ) ENGINE=DuckDB;

CREATE SEQUENCE primary_key_seq START WITH 1 INCREMENT BY 1 CACHE 100;
  1. Remove the DUCKDB engine.

Then:

  1. Go to a database (index.php?route=/database/structure&db=ducktest) that contains a DUCKDB table.
  2. See error:
Internal error in ./resources/templates/database/structure/structure_table_row.twig#95
Twig\Error\RuntimeError: An exception has been thrown during the rendering of a template ("PhpMyAdmin\Util::formatNumber(): Argument #1 ($value) must be of type string|int|float, null given, called in /usr/share/phpmyadmin/app/cache/twig/2b/2be454f16dd059e8cda1479fd5056017.php on line 241") in "database/structure/structure_table_row.twig" at line 95.

https://github.com/phpmyadmin/phpmyadmin/blob/b442fbfd854a6ba8d511707ee2a6f566702fc744/resources/templates/database/structure/structure_table_row.twig#L95

  1. Go to a Designer (index.php?route=/database/designer&db=ducktest) of a database that contains a DUCKDB table.
  2. See error:
Internal error in ./resources/templates/database/designer/database_tables.twig#66
Twig\Error\RuntimeError: Key "ducktest.sales" for sequence/mapping with keys "ducktest.primary_key_seq" does not exist in "database/designer/database_tables.twig" at line 66.

https://github.com/phpmyadmin/phpmyadmin/blob/b442fbfd854a6ba8d511707ee2a6f566702fc744/resources/templates/database/designer/database_tables.twig#L66

In 5.2.4-dev there are no errors:

https://github.com/user-attachments/assets/f90546ab-6352-47eb-8b45-d30cd0998cb7

Database Server

MariaDB

PHP version

8.5.10

phpMyAdmin version

6.0.0-dev