我突然得到了以下内容

时间:2015-08-17 19:52:00

标签: laravel-5.1

编辑 由于LARAVEL升级,包装不再起作用。这件事直接来自包装的开发者" ELOQUENCE"

我的代码没有做任何事情。我突然尝试使用搜索字段并得到此错误

QueryException in Connection.php line 636:
SQLSTATE[HY000]: General error: 2031 (SQL: select count(*) 
 as aggregate   from 
(select `posts`.*, max(case when `posts`.`title` = ? then 15 else 0 
 end     + case when `posts`.`title` like ? then 5 else 0 end + case 
 when    `posts`.`title` like ? then 1 else 0 end + case when
 `posts`.`subtitle` = ?    then 15 else 0 end + case when 
 `posts`.`subtitle` like ? then 5 else 0 end + case when       
 `posts`.`subtitle` like ? then 1 else 0 end + case when 
  `posts`.`content_raw` = ? then 15 else 0 end + case when    
  `posts`.`content_raw` like ? then 5 else 0 end + case when   
  `posts`.`content_raw` like ? then 1 else 0 end + case when   
 `tags`.`title` = ? then 15 else 0 end + case when `tags`.`title` like   
? then 5 else 0 end + case when `tags`.`title` like ? then 1 else 0  
end) as relevance from `posts` left join `taggables` on  
`taggables`.`taggable_id` = `posts`.`id` left join `tags` on   
 `taggables`.`tag_id` = `tags`.`id` where (`posts`.`title` like ? or  
 `posts`.`subtitle` like ? or `posts`.`content_raw` like ? or  
 `tags`.`title` like ?) group by `posts`.`id`) as `posts` where    
 `relevance` >= 1)

我不知道最近发生了什么。在写这篇文章时,我更新了我用于搜索的jarektkaczyk / eloquence包,但没有任何事情发生。工作正常,现在这个

0 个答案:

没有答案