We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Issue type:
[ ] question [x] bug report [ ] feature request [ ] documentation issue
Database system/driver:
[ ] cordova [ ] mongodb [ ] mssql [x] mysql / mariadb [ ] oracle [ ] postgres [ ] sqlite [ ] sqljs [ ] react-native [ ] expo
cordova
mongodb
mssql
mysql
mariadb
oracle
postgres
sqlite
sqljs
react-native
expo
TypeORM version:
[x] latest [ ] @next [ ] 0.x.x (or put your version here)
latest
@next
0.x.x
Steps to reproduce or a small repository showing the problem:
class User { Email!: string; }
class export class UserRepository extends AbstractRepository<User> { public getByEmail(mail: string): Promise<User | undefined> { return this.repository.findOne({where: { Email: mail }}); } }
This works es expected.
query: SELECT ... FROM `user` `User` WHERE `User`.`email` = ? -- PARAMETERS: ["u1@test.test"]
However if I change the Email in the where clause to email or anything different the query is executed without the where clause.
return this.repository.findOne({where: { email: mail }}); return this.repository.findOne({where: { x: mail }});
query: SELECT ... FROM `user` `User`
Shouldn't this throw an exception of missing columns instead?
The text was updated successfully, but these errors were encountered:
Isn't this a major problem for queries?
Sorry, something went wrong.
Closing in favor of #3416
No branches or pull requests
Issue type:
[ ] question
[x] bug report
[ ] feature request
[ ] documentation issue
Database system/driver:
[ ]
cordova
[ ]
mongodb
[ ]
mssql
[x]
mysql
/mariadb
[ ]
oracle
[ ]
postgres
[ ]
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:
This works es expected.
However if I change the Email in the where clause to email or anything different the query is executed without the where clause.
Shouldn't this throw an exception of missing columns instead?
The text was updated successfully, but these errors were encountered: