Content text collation: schema apply does not see it, and SQL Server may order characters above U+FFFF differently

Đang mở
#3,476 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ó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/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ệ
csharp, postgresql
Lĩnh vực
databases

Hướng nghiên cứu

Read the collation work in #3308, #3474, and #2874, then find the schema apply comparison for content text columns and its tests. Check which SQL Server binary collation is used and add a provider test around U+FFFF. Done means schema apply reports the mismatch with tested apply behavior, and the ordering issue has a provider test plus a fix or a specification sentence.

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

Mô tả

area:storage type:bug

Follow-ups of the collation of content text (#3308, #3474), found in its review.

  • Schema apply does not report or fix a content text column whose collation differs from the model. It compares only type and nullability, so after #3474 an existing PostgreSQL database on schema apply keeps the database collation on its content text columns, and a SQL Server database made before #2874 keeps its old collation, without a word in the plan or the startup report. Report such a column, and decide whether apply changes it (SQL Server refuses ALTER COLUMN ... COLLATE on an indexed column).
  • SQL Server's binary collation may order characters above U+FFFF by UTF-16 code unit. Then a character at U+10000 or above sorts before one in U+E000 to U+FFFF on SQL Server and after it on SQLite and PostgreSQL, so "code-point order on every provider" would not hold there. Not verified: check which _BIN or _BIN2 collation is used and add a provider test with such characters.

Wanted

  • Schema apply names a content text column with another collation, with a test.
  • A provider test of the order around U+FFFF, and a fix or a sentence in the specification.

Found in the review of #3474. Bundle 13.

Ngôn ngữ chính
C#
Star
567
Fork
107
Merge trung bình
1 giờ 19 phút
Pull request đã merge (30 ngày)
353

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 fluentcms/FluentCMS

Tất cả issue của fluentcms/FluentCMS

Issue tương tự

Thêm issue về C#

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.