Hello oxid devs,

when going through the changes in 4.6, I noticed that the function getOne (and 
execute/select) now has an additional parameter.
Most of the times it now looks like : $oDb->getOne( $sSQL, false, false ).

The second optional parameter is an array of sql parameters as it had been 
before.
I also found out, what the new optional parameter stands for ($blType = true): 
it  triggers, whether the slave-db or the master-db is used, while default is 
true = slave-db.

But... I have no idea, what that slave or master database thing is... !?

And, why is getOne called with (..., false, false) half of the time (so working 
with the master-db), and the other times without, so using the default slave-db.

How do I decide which mode I use in my own modules?

Regards,
Tobias Jungclaus
_______________________________________________
dev-general mailing list
[email protected]
http://dir.gmane.org/gmane.comp.php.oxid.general

Reply via email to