question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Find operators broken in Release 0.2.25

See original GitHub issue

Issue type:

[ ] question [x] bug report [ ] feature request [ ] documentation issue

Database system/driver:

[ ] cordova [ ] mongodb [ ] mssql [ ] mysql / mariadb [ ] oracle [x] postgres [ ] cockroachdb [ ] sqlite [ ] sqljs [ ] react-native [ ] expo

TypeORM version:

[x] latest [ ] @next [ ] 0.x.x (or put your version here)

Steps to reproduce or a small repository showing the problem:

After upgrading to 0.2.25 I am receiving the following invalid input syntax for type bigint error which does not occur in 0.2.24 …

query failed: SELECT "MetricEntity"."recorded" AS "MetricEntity_recorded", "MetricEntity"."id" AS "MetricEntity_id", "MetricEntity"."name" AS "MetricEntity_name", "MetricEntity"."time_bin_size" AS "MetricEntity_time_bin_size", "MetricEntity"."time_bin_start" AS "MetricEntity_time_bin_start", "MetricEntity"."provider_id" AS "MetricEntity_provider_id", "MetricEntity"."geography_id" AS "MetricEntity_geography_id", "MetricEntity"."vehicle_type" AS "MetricEntity_vehicle_type", "MetricEntity"."count" AS "MetricEntity_count", "MetricEntity"."sum" AS "MetricEntity_sum", "MetricEntity"."min" AS "MetricEntity_min", "MetricEntity"."max" AS "MetricEntity_max", "MetricEntity"."avg" AS "MetricEntity_avg", "MetricEntity"."timestamp" AS "MetricEntity_timestamp" FROM "metrics" "MetricEntity" WHERE "MetricEntity"."name" = $1 AND "MetricEntity"."time_bin_size" = $2 AND "MetricEntity"."time_bin_start" = $3 AND "MetricEntity"."provider_id" = $4 AND "MetricEntity"."geography_id" = $5 -- PARAMETERS: ["test.metric",300000,{"_type":"between","_value":[1590512700000,1590512999999],"_useParameter":true,"_multipleParameters":true},"4b56ac00-839b-4704-aff9-6daad618b1d9","0bb85755-fd78-4088-aacc-0d639dee6681"]
error: error: invalid input syntax for type bigint: "{"_type":"between","_value":[1590512700000,1590512999999],"_useParameter":true,"_multipleParameters":true}"
    at Parser.parseErrorMessage (/Users/mdurling/Repos/lacuna/lacuna-mds/node_modules/pg-protocol/src/parser.ts:325:11)
    at Parser.handlePacket (/Users/mdurling/Repos/lacuna/lacuna-mds/node_modules/pg-protocol/src/parser.ts:154:21)
    at Parser.parse (/Users/mdurling/Repos/lacuna/lacuna-mds/node_modules/pg-protocol/src/parser.ts:106:30)
    at Socket.<anonymous> (/Users/mdurling/Repos/lacuna/lacuna-mds/node_modules/pg-protocol/src/index.ts:7:48)
    at Socket.emit (events.js:315:20)
    at addChunk (_stream_readable.js:302:12)
    at readableAddChunk (_stream_readable.js:278:9)
    at Socket.Readable.push (_stream_readable.js:217:10)
    at TCP.onStreamRead (internal/stream_base_commons.js:186:23) {
  length: 197,
  severity: 'ERROR',
  code: '22P02',
  detail: undefined,
  hint: undefined,
  position: undefined,
  internalPosition: undefined,
  internalQuery: undefined,
  where: undefined,
  schema: undefined,
  table: undefined,
  column: undefined,
  dataType: undefined,
  constraint: undefined,
  file: 'int8.c',
  line: '129',
  routine: 'scanint8'
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
chriswepcommented, May 28, 2020

@drtyh2o i also had this issue and in my case the issue was that i had mixed typeorm versions in my project (one inter-project module was still using 0.2.24). Putting everything on the same version fixed the issue.

0reactions
marinescommented, Jun 21, 2020

~I don’t have multiple versions of typeorm and the issue still occurs.~

nvm, it’s a different issue: https://github.com/typeorm/typeorm/issues/6289

Read more comments on GitHub >

github_iconTop Results From Across the Web

typeorm: CHANGELOG
Mark array arguments to find operators as read-only (#9474) (6eb674b) ... Bug Fixes. broken CLI in ESM projects since version 0.3.0 (#8773) (97699e8) ......
Read more >
0.3.7 (2022-06-29) | TypeORM Docs
new array find operators ( ArrayContains , ArrayContainedBy , ArrayOverlap ) ... Repository now has a constructor (breaks classes extending Repository with ...
Read more >
Modern Warfare 2, Warzone 2.0 Operators list and how to ...
Here's how to unlock all Operators, split into Modern Warfare 2's teams: ... Gus, Get five Assists in a single Multiplayer match.
Read more >
Operators (N to R) - GAMA Platform
Operators in the GAML language are used to compose complex expressions. An operator performs a function on one, two, or n operands (which...
Read more >
85 - Stack Overflow
operator, I should add it to the list of exclusions of the ... I got this error after upgrade react-leaflet to version 3.2.0...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found