fix: Trial Pairing Simulator — correct SQLite string quoting for sex filter #43
Reference in New Issue
Block a user
Delete Branch "fix/trial-pairing-sex-quote"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
The Trial Pairing Simulator returns
no such column: malewhen clicking Simulate Pairing.Root Cause
In
server/routes/pedigree.js(lines 164–165), thetrial-pairingPOST handler used double quotes around the string literals"male"and"female"in the SQL queries:SQLite follows the SQL standard where double quotes denote identifiers (column/table names), not string values. So SQLite interpreted
"male"as a column name, throwingno such column: male.Fix
Changed to single-quoted string literals, which SQLite correctly treats as values:
Files Changed
server/routes/pedigree.js— lines 164–165 only