Skip to content

Commit 431b7c6

Browse files
authored
Add a note about alternative to parameterized queries for DDL (#94)
1 parent 9c14396 commit 431b7c6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

content/features/2-queries.mdx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ try {
6363
}
6464
```
6565

66+
<div class="alert alert-warning">
67+
PostgreSQL does not support parameters for identifiers. If you need to have dynamic database, schema, table, or column names (e.g. in DDL statements) use <a href="https://www.npmjs.com/package/pg-format">pg-format</a> package for handling escaping these values to ensure you do not have SQL injection!
68+
</div>
69+
6670
Parameters passed as the second argument to `query()` will be converted to raw data types using the following rules:
6771

6872
**null and undefined**

0 commit comments

Comments
 (0)