Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #9025: Error showing pie chart in statistics when using M…
…S SQL server
- Loading branch information
58c9dab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The findByAttributes is broken on MSSQL ?
58c9dab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No, mysql is just more lenient if you feed crap to it ;).
58c9dab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK, then MSSQL help to find bug ;)
58c9dab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't you need to at least escape the variables if you move away from ActiveRecord?
58c9dab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Where?
58c9dab
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$_POST['id']]['type'] and $_POST['id']]['qid'] i think (and sanitize)
But i prefer to find a way to search type from qid. And do it from Yii model (no need to sanitize)