ProgrammingError at /blog/search/
(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 '@@ plainto_tsquery('asdasd')) subquery' at line 1")
Request Method:GETRequest URL:http://127.0.0.1:8000/blog/search/?query=asdasdDjango Version:3.1.6Exception Type:ProgrammingErrorException Value:
(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 '@@ plainto_tsquery('asdasd')) subquery' at line 1")
Exception Location:E:\python\lib\site-packages\pymysql\err.py, line 143, in raise_mysql_exceptionPython Executable:E:\python\python.exePython Version:3.7.1Python Path:
['E:\\SourceCode', 'E:\\SourceCode', 'E:\\python\\python37.zip', 'E:\\python\\DLLs', 'E:\\python\\lib', 'E:\\python', 'E:\\python\\lib\\site-packages', 'E:\\python\\lib\\site-packages\\win32', 'E:\\python\\lib\\site-packages\\win32\\lib', 'E:\\python\\lib\\site-packages\\Pythonwin']
Server time:Sat, 06 Feb 2021 20:43:51 +0800
这不是SQL语法错误么
你用的是ORM还是原生SQL?