I have copied unmodified (I think) code for Yii's database connection from manual / demo app / whatever. And, if I'm not mistaken, it has 'emulatePrepare'=>TRUE
set by default.
Then I found this and this answer and many more sources, which all seems to be claiming, that using emulate prepares is wrong idea. That it is some kind of relic from an old versions of RDBMS (particularly MySQL in my case) and should not be used on modern versions of MySQL/PHP.
Can someone confirm that? Should we have 'emulatePrepare'=>FALSE
in our Yii apps?