SHOW <parameter> labels its column `@@session.<parameter>` instead of the parameter name

Đang mở Phù hợp với người mới
#3,969 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
62/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
go, postgresql
Lĩnh vực
databases

Hướng nghiên cứu

Nhãn cột được lấy từ đường xử lý SHOW đối với biến phiên, hiện đang thêm tiền tố @@session. vào tên; hãy tìm tiền tố này trong mã nguồn Go để xác định nơi SHOW tạo cột kết quả. Tái hiện bằng SHOW search_path; và SHOW transaction_isolation; trên máy chủ Doltgres cục bộ, rồi so sánh với SELECT current_setting('search_path'). Hoàn thành khi cả hai câu lệnh SHOW đều trả về cột có tên theo tham số và các kiểm thử SHOW hiện có được cập nhật cho khớp.

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

Mô tả

customer issue

Description

SHOW search_path returns a single column labelled @@session.search_path. PostgreSQL labels it with the parameter name, search_path, and clients read the value by that name. The same happens for other parameters, e.g. SHOW transaction_isolation → @@session.transaction_isolation.

Impact: Cycle ORM (cycle/database, PHP) checks the effective schema with SHOW search_path and reads $row['search_path']; on Doltgres the key is missing, so 3 of its tests read null.

Steps to reproduce

Doltgres 1.5.3, Windows amd64 build, fresh data directory, client: PHP PDO pgsql.

SHOW search_path;
SHOW transaction_isolation;

Doltgres:

{"@@session.search_path": "\"$user\", public"}
{"@@session.transaction_isolation": "read committed"}

PostgreSQL 18:

{"search_path": "\"$user\", public"}
{"transaction_isolation": "read committed"}

SELECT current_setting('search_path') returns the same value on both, so only the column label differs.

Additional context

#3335 mentions the same label in passing (@@session.default_text_search_config) while reporting full-text search.

Ngôn ngữ chính
Go
Star
2.2k
Fork
93
Merge trung bình
19 giờ 38 phút
Pull request đã merge (30 ngày)
132

Chuẩn bị môi trường

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 dolthub/doltgresql

Tất cả issue của dolthub/doltgresql

Issue tương tự

Thêm issue về Go

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.