Closed fun-li closed 2 years ago
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question
template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
This is obviously a problematic prepare statement, which cannot be created successfully, not only on https://github.com/go-sql-driver/mysql, but also on mysql itself.
SELECT resource FROM verification_sources WHERE resource is not ?
When I use gorm, the following sql statement is generated, it cannot be executed normally, but it is executed normally in the mysql client. At first, it is suspected that it is a database-driven problem. Use github.com/go-sql-driver/mysql driver It can be executed normally, I want to ask if it is a problem with gorm.
Error message :Error 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '? AND
li_verification_source
.delete_flag
= ?' at line 1