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

Offen
#3,476 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
48/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
csharp, postgresql
Bereich
databases

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

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.

Vorherrschende Sprache
C#
Sterne
567
Forks
107
Ø Merge
1 Std. 19 Min.
Gemergte PRs (30 T.)
353

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus fluentcms/FluentCMS

Alle Issues in fluentcms/FluentCMS

Ähnliche Issues

Weitere Issues zu C#

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.