mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-06-25 16:19:19 +02:00
fix: author name casing not updating — use ID lookup priority
Root cause: SQLite uses BINARY collation, so WHERE name = ? is case-sensitive. When changing 'john doe' to 'John Doe', the name lookup failed and fell through to the email path which didn't update the name. The previous fix only added UPDATE in the name-match branch. Fixes in findOrCreateAuthor: 1. Accept optional $idHint parameter — when known (edit flow), update directly by ID (fastest, zero ambiguity) 2. Add COLLATE NOCASE to the name lookup (fallback path) 3. Add UPDATE in the email fallback path too setThesisAuthors now fetches existing author_ids before deletion and passes them as position-based hints, so identity is always preserved.
This commit is contained in:
@@ -1 +0,0 @@
|
||||
[1778581846]
|
||||
@@ -1 +0,0 @@
|
||||
[1778588121,1778588125,1778588134,1778588162,1778588315]
|
||||
@@ -1 +0,0 @@
|
||||
[1778680536,1778680763]
|
||||
@@ -1 +0,0 @@
|
||||
[1779201568]
|
||||
@@ -1 +0,0 @@
|
||||
[1779234737]
|
||||
@@ -1 +0,0 @@
|
||||
[1778588615]
|
||||
@@ -1 +0,0 @@
|
||||
[1778588955]
|
||||
Reference in New Issue
Block a user