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
Sorry for the trouble caused. The previous behavior for inputting geometry is using WKT without taking SRID into account. My PR is to add support for SRID option.
As a patch update, typeorm should not introduce any breaking changes to the package. I should definitely be more careful about this.
I know 4326 is adopted by many popular map solution. However, I can't find MSSQL documentation about the default value of SRID when not using the STGeomFromText function. I am not sure if it makes sense to set default value to 4326. Can you provide some official reference on this issue?
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[x]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
cockroachdb
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[x]
latest
[ ]
@next
[x]
0.2.25
(or put your version here)Steps to reproduce or a small repository showing the problem:
As the title says, the POINT entry in a MSSQL database with the Geometry column type is no longer working as of 0.2.25.
See logging between version as result:
0.2.25
INSERT INTO "barrack"("code", "location", "name") OUTPUT INSERTED."id" INTO @OutputTable VALUES (@0, geography::STGeomFromText(@1, 0), @2);
0.2.24
INSERT INTO "barrack"("code", "location", "name") OUTPUT INSERTED."id" INTO @OutputTable VALUES (@0, @1, @2);
Please notice the weirdly formatted SQL Query with parameters.
A fix would be great! Thanks for your support in advance.
The text was updated successfully, but these errors were encountered: