hightman / xunsearch

免费开源的中文搜索引擎,采用 C/C++ 编写 (基于 xapian 和 scws),提供 PHP 的开发接口和丰富文档
http://www.xunsearch.com
Other
1.64k stars 391 forks source link

必须在sql中指定limit限制,避免sql自动获取count数量出错。 #26

Open neatlife opened 8 years ago

neatlife commented 8 years ago

比如在select count(b.id) from t1 a left join t2 b on a.id = b.t1_id group by a.id;时自动判断count的语句会不按预期运行,去掉更好?