Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash when resetting the same option more than once #47

Open
unknowndomain opened this issue Mar 8, 2024 · 0 comments
Open

Crash when resetting the same option more than once #47

unknowndomain opened this issue Mar 8, 2024 · 0 comments

Comments

@unknowndomain
Copy link

Steps to reproduce:

  1. Edit setting
  2. Reset
  3. Edit
  4. Reset - CRASH
/Users/tlynch/git/checkout/node_modules/pg-protocol/dist/parser.js:287
        const message = name === 'notice' ? new messages_1.NoticeMessage(length, messageValue) : new messages_1.DatabaseError(messageValue, length, name);
                                                                                                 ^

error: delete from "options" where "id" = $1 - invalid input syntax for type integer: "{"id":19}"
    at Parser.parseErrorMessage (/Users/tlynch/git/checkout/node_modules/pg-protocol/dist/parser.js:287:98)
    at Parser.handlePacket (/Users/tlynch/git/checkout/node_modules/pg-protocol/dist/parser.js:126:29)
    at Parser.parse (/Users/tlynch/git/checkout/node_modules/pg-protocol/dist/parser.js:39:38)
    at Socket.<anonymous> (/Users/tlynch/git/checkout/node_modules/pg-protocol/dist/index.js:11:42)
    at Socket.emit (node:events:518:28)
    at addChunk (node:internal/streams/readable:559:12)
    at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
    at Readable.push (node:internal/streams/readable:390:5)
    at TCP.onStreamRead (node:internal/stream_base_commons:190:23) {
  length: 147,
  severity: 'ERROR',
  code: '22P02',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: "unnamed portal parameter $1 = '...'",
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'numutils.c',
  line: '323',
  routine: 'pg_strtoint32'
}


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant