Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

[6.0]: Issues after DUCKDB engine is removed

Đang mở
#20,493 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
68/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
mariadb, php
Lĩnh vực
database

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
PHP
Star
7.9k
Fork
3.6k
Merge trung bình
3 ngày 5 giờ
Pull request đã merge (30 ngày)
29

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của phpmyadmin/phpmyadmin

Tất cả issue của phpmyadmin/phpmyadmin

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.