Files
it-tools/src
Sebastian DanielssonandClaude Opus 5.5 1b8d4879ac fix(database-builder): quote names and passwords in generated SQL
The database name, account and server address are prefilled from URL query
parameters and were pasted into the script as is, so a crafted link could
add statements to the SQL a user copies and runs (e.g. a database name
containing `` `; DROP DATABASE prod; -- ``). A password containing `'` also
produced invalid SQL.

- Quote identifiers and string literals per dialect.
- PostgreSQL passwords containing a backslash are emitted as E'' strings,
  which parse the same whatever standard_conforming_strings is set to.
- Oracle has no escape for `"` in quoted names or passwords, so either one
  containing `"` shows a validation error instead of generating SQL. Plain
  Oracle names stay unquoted since quoting makes them case-sensitive.
- Newlines in values that land in SQL comments are flattened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 21:11:50 +02:00
..
2025-07-14 21:59:07 +02:00
2026-09-06 09:02:45 +02:00
2026-09-06 09:02:45 +02:00
2026-09-06 09:02:45 +02:00
2026-09-06 09:02:45 +02:00
2026-09-06 09:59:14 +02:00
2026-09-06 09:02:45 +02:00