Closed brisk21 closed 5 years ago
Please answer these questions before submitting your issue. Thanks!
What did you do? echo $soar->score("SELECT * FROM test_blog where title like '%php%'");
test_blog
What did you expect to see? SELECT * FROM test_blog where title like '%php%'
What did you see instead? SELECT * FROM test_blog where title like %php%
What version of are you using (soar -version)? The latest version
soar -version
return $this->exec("echo '$sql;' | $this->soarPath ".$this->getFormatConfig($this->config));
SQL 放在文件中 cat file.sql | soar 这种方式给 soar, 不然就需要自己的程序中做好转义。
Please answer these questions before submitting your issue. Thanks!
What did you do? echo $soar->score("SELECT * FROM
test_blog
where title like '%php%'");What did you expect to see? SELECT * FROM
test_blog
where title like '%php%'What did you see instead? SELECT * FROM
test_blog
where title like %php%What version of are you using (
soar -version
)? The latest versionreturn $this->exec("echo '$sql;' | $this->soarPath ".$this->getFormatConfig($this->config));