我最近将我的MySQL实例从5.7升级到8.0.我使用JDBC和一个看起来像这样的连接字符串连接到我的旧实例:
jdbc:mysql://[host:port]/[database]/?sessionVariables=sql_mode=''
Run Code Online (Sandbox Code Playgroud)
升级到8.0后会导致此错误
com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connection string near '='')'.
Run Code Online (Sandbox Code Playgroud)
如何在MySQL 8的JDBC连接字符串中设置SQL模式?
所以,如果我理解正确,当我写:
(defn foo [x] (+ (* (- x 3) 2) (- x 3)))
Run Code Online (Sandbox Code Playgroud)
foo 受到约束:
(fn [x] (+ (* (- x 3) 2) (- x 3)))
Run Code Online (Sandbox Code Playgroud)
如何从中访问该功能foo?我的目的是改变函数中的某些东西并返回一个新函数.