We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 704fb13 commit 8ca034cCopy full SHA for 8ca034c
test/server/query.ts
@@ -730,3 +730,24 @@ test('error with internalQuery property', async () => {
730
}
731
`)
732
})
733
+
734
+test('custom application_name', async () => {
735
+ const res = await app.inject({
736
+ method: 'POST',
737
+ path: '/query',
738
+ headers: {
739
+ 'x-pg-application-name': 'test',
740
+ },
741
+ payload: {
742
+ query: 'SHOW application_name;',
743
744
+ })
745
746
+ expect(res.json()).toMatchInlineSnapshot(`
747
+ [
748
+ {
749
+ "application_name": "test",
750
751
+ ]
752
+ `)
753
+})
0 commit comments