Stufe 5: Jahresplanung mit Versionen, 12 Monaten, Plan/Ist und BWA-Import (0.22.0)
Some checks failed
Prüfung / tests (push) Has been cancelled
Prüfung / container (push) Has been cancelled

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01AmyPfuNc4sCRfaF3oURXZz
This commit is contained in:
Claude
2026-10-21 21:20:22 +00:00
parent ee5b468502
commit 1d1ba3ace4
19 changed files with 6595 additions and 12 deletions

View File

@@ -14,7 +14,8 @@ export function alsPool(db: PGlite) {
return { rows: [], rowCount: 0 };
}
const r = await db.query(sql, params ?? []);
return { rows: r.rows as any[], rowCount: r.affectedRows ?? r.rows.length };
// PGlite meldet bei select affectedRows = 0, pg zählt die Zeilen
return { rows: r.rows as any[], rowCount: Math.max(r.affectedRows ?? 0, r.rows.length) };
};
// PGlite hat nur eine Verbindung: Transaktionen laufen nacheinander
let kette: Promise<void> = Promise.resolve();