On Nov 1, 2016, at 4:27 PM, Bryan Davis bd808@wikimedia.org wrote:
On Tue, Nov 1, 2016 at 1:58 PM, Tom Bishop, Wenlin Institute tangmu@wenlin.com wrote:
... https://www.mediawiki.org/wiki/Manual:Database_access
-- includes a dead link to --
https://doc.wikimedia.org/mediawiki-core/master/php/classDatabaseBase.html
Any idea where it should link to?
I think I fixed the links. The DatabaseBase class was renamed to Database a while ago but the docs weren't all updated.
Thank you for fixing that!
...
It would be interesting to see an RfC on converting to a prepared statement based execution model written by someone who has gone through our code code and looked at common usage in core and major extensions. Off the top of my head I have no idea how difficult it would be to maintain api compatibility and/or to change the callers that would need to think about constructing a query differently.
I hope it might be possible to support prepared statements, for use in new code, without requiring all existing code to take advantage of that support right away. I'll keep studying Database.php and MySQL, and if I ever understand well enough to contribute anything useful, I will.
Thanks and best wishes,
Tom
Wenlin Institute, Inc. SPC (a Social Purpose Corporation) 文林研究所社会目的公司 Software for Learning Chinese E-mail: wenlin@wenlin.com Web: http://www.wenlin.com Telephone: 1-877-4-WENLIN (1-877-493-6546) ☯