[6.0]: Issues after DUCKDB engine is removed
まだ誰も着手していません。
評価
調査の方向性
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 の本文から書いたものです。
説明
Describe the bug
- Install DUCKDB engine
- 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;
- Remove the DUCKDB engine.
Then:
- Go to a database (index.php?route=/database/structure&db=ducktest) that contains a DUCKDB table.
- 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.
- Go to a Designer (index.php?route=/database/designer&db=ducktest) of a database that contains a DUCKDB table.
- 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.
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
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
phpmyadmin/phpmyadmin のほかの issue
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
phpmyadmin/phpmyadmin#20462 · コメント 2 件 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
phpmyadmin/phpmyadmin#20412 ·
-
Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
phpmyadmin/phpmyadmin#20399 ·
-
affects/6.0 Bug confirmed/6.0 good first issue UI
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
phpmyadmin/phpmyadmin#18505 · コメント 6 件 ·
-
school オープンBug
難易度 4/5 3〜5日 初心者へのやさしさ 15/100
phpmyadmin/phpmyadmin#20486 ·
phpmyadmin/phpmyadmin の issue をすべて見る
似ている issue
-
tooling
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
UX
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
ProfessionalWiki/NeoWiki#1525 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug customer-reported
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
MagnaCapax/PMSS#949 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
Automattic/static-site-importer#1829 ·