Stufe 5: Jahresplanung mit Versionen, 12 Monaten, Plan/Ist und BWA-Import (0.22.0)
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user