Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[6.0]: Issues after DUCKDB engine is removed

オープン
#20,493 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
3/5
見積もり時間
1〜2日
初心者へのやさしさ
68/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
mariadb, php
領域
database

調査の方向性

Reproduce the failure by removing the DUCKDB engine, then inspect resources/templates/database/structure/structure_table_row.twig at line 95 and resources/templates/database/designer/database_tables.twig at line 66. Trace the values passed to those templates and ensure both the database Structure and Designer pages render without exceptions when a removed-engine table remains.

索引モデルが issue の本文から書いたものです。

説明

Bug
Describe the bug
  1. Install DUCKDB engine
  2. Create a test table with DUCKB engine
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

主要言語
PHP
スター
7.9k
フォーク
3.6k
平均マージ
3日 5時間
マージ済み PR(30日)
29

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

phpmyadmin/phpmyadmin のほかの issue

phpmyadmin/phpmyadmin の issue をすべて見る

似ている issue

PHP の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。