【发布时间】:2018-05-05 02:06:13
【问题描述】:
我使用 Kotlin Exposed 创建查询。但是当我必须使用从客户端收到的参数时,我遇到了一个问题:
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())
}
}
那么如何创建准备好的语句或如何通过可能的 SQL 注入传递参数?
【问题讨论】:
标签: kotlin kotlin-exposed