PerfectlySoft / Perfect-MySQL

A stand-alone Swift wrapper around the MySQL client library, enabling access to MySQL servers.
https://www.perfect.org
Apache License 2.0
128 stars 61 forks source link

Compile Swift Module 'PerfectMySQL' Error! #32

Closed zhiblin closed 6 years ago

zhiblin commented 6 years ago

Apple Swift version 4.1.2 (swiftlang-902.0.54 clang-902.0.39.2) Target: x86_64-apple-darwin17.6.0


.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL/MySQLStmt.swift:503:43: error: use of undeclared type 'my_bool' let isNullBuffers: UnsafeMutablePointer

.build/checkouts/Perfect-MySQL.git-4976130768219902098/Sources/PerfectMySQL/MySQLStmt.swift:214:7: error: binary operator '==' cannot be applied to operands of type 'Int' and 'Bool' 0 == mysql_stmt_bind_param(ptr, paramBinds) else {

BuZheng-work commented 6 years ago

hello, I meet a same problem,what did you resolve it?Thank you

onean commented 6 years ago

@JiMengfei because Perfect-MySQL support Mysql 5.7.21,you may install 8.0

zhangxiaoyuheshui commented 6 years ago

hi, if you solve it, can you tell me the solution, thank you. @onean , should I install Mysql 5.7.21?

AmirHossein1372 commented 5 years ago

This worked for me: (based on readme of repository) -> brew uninstall mysql -> brew install mysql@5.7 -> brew install mysql@5.7 && brew link mysql@5.7 --force