-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Brackets syntax failed when use where with object literal #3685
Comments
This comment has been minimized.
This comment has been minimized.
Encountered the same thing today. EDIT: |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
And news on this? |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Having the same problem with |
@Kononnable people keep using |
...and what's the intended usage? |
@kevindashgit I believe this is the intended usage: .where('id = :id', {id}); |
Is this still true? Is there a place in the documentation where this is clearly stated? I see that the preferred one in the docs is .where('id = :id', {id}); but I've never seen that |
Issue type:
[ ] question
[x ] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[ ]
mysql
/mariadb
[ ]
oracle
[x ]
postgres
[ ]
sqlite
[ ]
sqljs
[ ]
react-native
[ ]
expo
TypeORM version:
[ ]
latest
[ ]
@next
[ x]
0.2.12
(or put your version here)Steps to reproduce or a small repository showing the problem:
When I use Brackets syntax with object literal as below:
I got exception:
From my quick research, the issue come from this line:
Seem like omit null check in
mainAlias
causes this issue.Thanks,
The text was updated successfully, but these errors were encountered: