We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b425e8 commit adb50a2Copy full SHA for adb50a2
src/templates/routes.py.ejs
@@ -24,7 +24,7 @@ function generate_method_name(method, path) {
24
// "INSERT INTO ... VALUES(:categoryId)" => "INSERT INTO ... VALUES(%(categoryId)s)"
25
// See: https://www.psycopg.org/docs/usage.html#passing-parameters-to-sql-queries
26
function convertToPsycopgNamedArguments(sql) {
27
- return sql.replace(/:([_a-zA-Z]+)/g, '%($1)s')
+ return sql.replace(/(?<!:):([_a-zA-Z]+)/g, '%($1)s')
28
}
29
30
// "/categories/:categoryId" => "/categories/{categoryId}"
0 commit comments