Skip to content

Commit 658bd15

Browse files
w3b6x9soedirgo
authored andcommitted
fix: update existing function query
1 parent 2983995 commit 658bd15

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ None. Please don't use this as a standalone server. This should be used behind a
9292

9393
## Developers
9494

95-
1. Start the database using `docker-compose up`
95+
1. Start the database using `docker-compose -f test/db/docker-compose.yml up`
9696
2. Run `npm run dev`
9797
3. Run `npm test` while you work
9898

src/lib/PostgresMetaFunctions.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ export default class PostgresMetaFunctions {
168168
IF (
169169
SELECT id
170170
FROM (${functionsSql}) AS f
171-
WHERE f.identity_argument_types = ${literal(identityArgs)}
171+
WHERE f.schema = ${literal(currentFunc!.schema)}
172+
AND f.name = ${literal(currentFunc!.name)}
173+
AND f.identity_argument_types = ${literal(identityArgs)}
172174
) != ${id} THEN
173175
RAISE EXCEPTION 'Cannot find function "${currentFunc!.schema}"."${
174176
currentFunc!.name

0 commit comments

Comments
 (0)