I use Kotlin Exposed to create queries. But I faced a problem when I have to use a parameter recieved from a client:
private fun accountInfo(msg: AccountInfoMsg) {
transaction {
val accountInfo = UserAccount.wrapRow(Account.innerJoin(Account_Banned).select {
Account.email.eq(msg.login.toLowerCase()) and (Account.id eq Account_Banned.accountId)
}.single())
}
}
So how to create a prepared statement or how to pass a parameter with possible SQL injection?