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
[x] latest
[ ] @next
[ ] 0.x.x (or put your version here)
Steps to reproduce or a small repository showing the problem:
The SRID feature is not properly implemented for MSSQL.
The original implementation cause rejection if SRID constraint is implemented in SQL server.
I added the following code to typeorm/query-builder/UpdateQueryBuilder.js after line 369.
After modification, it works.
Issue type:
[ ] question
[x] bug report
[x] 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
[ ]
0.x.x
(or put your version here)Steps to reproduce or a small repository showing the problem:
The SRID feature is not properly implemented for MSSQL.
The original implementation cause rejection if SRID constraint is implemented in SQL server.
I added the following code to
typeorm/query-builder/UpdateQueryBuilder.js
after line 369.After modification, it works.
Codes:
else if (_this.connection.driver instanceof SqlServerDriver_1.SqlServerDriver && _this.connection.driver.spatialTypes.indexOf(column.type) !== -1) { expression = column.type + "::STGeomFromText(" + _this.connection.driver.createParameter(paramName, parametersCount) + ", " + (column.srid||"0") + ")"; }
The text was updated successfully, but these errors were encountered: