You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot read then save the same entity with point #4004
When position goes into the database as '(-23, -23)', and comes back as { x: -23, y: -23 }, so when it re-inserts it fails with
QueryFailedError: invalid input syntax for type point: "{"x":-23,"y":-23}"
it("Can insert and re-insert a position",async()=>{constconnection=awaitconnectFromEnv();awaitconnection.transaction(asyncdb=>{constlocations=db.getRepository(Location);// Save a locationletid;{constlocation=awaitlocations.save({line1: "Test",position: "(-23,-23)"}asLocation);id=location.id;}// Update location -- Fails{constlocation=awaitlocations.findOneOrFail(id);console.log(location);awaitlocations.save(location);}});});
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
This issue resulted from the standard geometric types not being properly normalized for point/circle in the PostgresDriver.ts -> preparePersistentValue().
Activity
vlapo commentedon Apr 21, 2019
Could you please provide your
Locationentity definition?onionhammer commentedon Apr 24, 2019
@vlapo sorry for the late reply;
Location looks like this
vlapo commentedon Apr 24, 2019
Postgres do not support
Pointtype. You have to use:onionhammer commentedon Apr 25, 2019
@vlapo With the definition I have above, it creates the table with column type of 'point'
vlapo commentedon Apr 25, 2019
Ou, sorry. I understand now. You are not using PostGIS. It looks like a bug with converting data.
github-actions commentedon Sep 18, 2025
TypeORM has returned to active development after recently transitioning to new leadership (see related announcement).
As part of the new team's efforts to prioritise work on the project moving forward, it is necessary to clean up the backlog of stale issues.
🧹 This issue is being automatically closed because it has had no activity in the last 6 months.
If you believe this issue is still relevant, feel free to comment below and the maintainers may reopen it. Thank you for your contribution.
onionhammer commentedon Sep 18, 2025
Was this resolved?
gioboa commentedon Sep 18, 2025
Can you test with the latest version?
Cprakhar commentedon Dec 18, 2025
This issue resulted from the standard geometric types not being properly normalized for
point/circlein thePostgresDriver.ts -> preparePersistentValue().