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

Aperta
#3,476 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, postgresql
Ambito
databases

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
C#
Stelle
567
Fork
107
Merge medio
1h 19m
PR unite (30g)
353

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di fluentcms/FluentCMS

Tutte le issue di fluentcms/FluentCMS

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.