We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1c13a92 commit 5d4bcb6Copy full SHA for 5d4bcb6
packages/pg/test/unit/client/throw-in-type-parser-tests.js
@@ -8,7 +8,10 @@ const suite = new helper.Suite()
8
9
var typeParserError = new Error('TEST: Throw in type parsers')
10
11
-types.setTypeParser('special oid that will throw', function () {
+// when -1 becomes an actual type, replace it with something else
12
+var invalidTypeOid = -1
13
+
14
+types.setTypeParser(invalidTypeOid, function () {
15
throw typeParserError
16
})
17
@@ -20,7 +23,7 @@ const emitFakeEvents = (con) => {
20
23
fields: [
21
24
{
22
25
name: 'boom',
- dataTypeID: 'special oid that will throw',
26
+ dataTypeID: invalidTypeOid,
27
},
28
],
29
0 commit comments