Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

当 Repo::find_one() 执行了无效查询时,应该在日志中添加一条警告信息 #1

Open
dualface opened this issue Sep 10, 2010 · 0 comments

Comments

@dualface
Copy link
Owner

Repo::find_one($class, 2);
Repo::find_one($class, 'post_id > 1 AND post_id < 3');

两次 find_one() 返回同一个对象实例,但执行了两次查询。第二次查询的结果被丢弃了,这种情况应该记录在日志中。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant