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
Steps to reproduce or a small repository showing the problem:
Hello, this issue won't occur if you start typeorm when there are no tables to synchrozine with.
The error is thrown when there is at least one column of type geometry in any of the tables you tried synchroning with.
The error is being thrown here.
The problem is caused by the fact that the query that you execute right before this line, returns empty result.
The result is empty because the last condition in that query is "table_name" = '${table.name}', we can see that the table.name is being set here.
The bottom line is that the data inside the column "table_name" in the table "geometry_columns" does not include schema name in it.
In order to solve this problem i think we should pass just the table name without the schema name included in it to the mentioned query.
The text was updated successfully, but these errors were encountered:
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
Steps to reproduce or a small repository showing the problem:
Hello, this issue won't occur if you start typeorm when there are no tables to synchrozine with.
The error is thrown when there is at least one column of type
geometry
in any of the tables you tried synchroning with.The error is being thrown here.
The problem is caused by the fact that the query that you execute right before this line, returns empty result.
The result is empty because the last condition in that query is
"table_name" = '${table.name}'
, we can see that thetable.name
is being set here.The bottom line is that the data inside the column "table_name" in the table "geometry_columns" does not include schema name in it.
In order to solve this problem i think we should pass just the table name without the schema name included in it to the mentioned query.
The text was updated successfully, but these errors were encountered: