aboutsummaryrefslogtreecommitdiffstats
path: root/includes/DatabaseFunctions.php
Commit message (Collapse)AuthorAgeFilesLines
* Ditched DatabaseFunctions.php. All extensions using it are old and ↵Max Semenik2010-03-041-412/+0
| | | | | | | incompatible with current MediaWiki anyway. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/63241
* Mass convert NULL -> null. Left strings and comments alone, obviously.Chad Horohoe2009-12-111-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/59969
* Lots of doc updates. Documented where I knew what it did. Added @see ↵Chad Horohoe2008-09-201-8/+18
| | | | | | | parameters to all of these wrappers for doxygen. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/41051
* WARNING: HUGE COMMITAlexandre Emsenhuber2008-05-201-1/+2
| | | | | | | | | | | | | | | | | | Doxygen documentation update: * Changed alls @addtogroup to @ingroup. @addtogroup adds the comment to the group description, but doesn't add the file, class, function, ... to the group like @ingroup does. See for example http://svn.wikimedia.org/doc/group__SpecialPage.html where it's impossible to see related files, classes, ... that should belong to that group. * Added @file to file description, it seems that it should be explicitely decalred for file descriptions, otherwise doxygen will think that the comment document the first class, variabled, function, ... that is in that file. * Removed some empty comments * Removed some ?> Added following groups: * ExternalStorage * JobQueue * MaintenanceLanguage One more thing: there are still a lot of warnings when generating the doc. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/35098
* * remove end of line whitespaceSiebrand Mazeland2008-04-141-1/+0
| | | | | | | | * remove empty lines at end of file * remove "?>" where still present Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/33276
* Remove ?>'s from files. They're pointless, and just asking for people to ↵Aryeh Gregor2007-06-291-1/+1
| | | | | | | mess with the files and add trailing whitespace. (Yes, I looked over every one and reverted those that were bogus. Slash-enter a million times in less worked well enough, although it was a bit mind-numbing.) Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/23531
* The war on redundant ampersand usage!Nick Jenkins2007-01-221-26/+26
| | | | | | | | | | | | * Convert "$dbw =& wfGetDB( DB_MASTER );" --> "$dbw = wfGetDB( DB_MASTER );" * convert "$skin =& $wgUser->getSkin();" --> "$skin = $wgUser->getSkin();" For the time being have not changed the function definitions of wfGetDB() or User::getSkin() [i.e. they are still both return-by-ref], so as to ensure the interface does not change for extensions [some of which may still be trying to run on PHP4 environments]. However presumably at some point this can be changed too. Also includes tiny tweak to newlines in parserTests - will show 1 rather than 2 newlines between the "Reading tests from" strings when in quiet mode. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19598
* Use Doxygen @addtogroup instead of phpdoc @package && @subpackageAntoine Musso2007-01-201-1/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/19502
* Code housekeeping stuff (and barring any stuff-ups on my behalf, there ↵Nick Jenkins2006-11-231-1/+0
| | | | | | | | | | | | | | | | | | should be no changes in behaviour whatsoever after this) - * removing some unused global declarations. * removing or commenting out or adding comments for unused local vars. * Adding one or two local var declarations. * Declaring $matches array passed to preg_match() / preg_match_all() as array() before using [not required, just have a slight preference for the explicitness]. * remove one or two pass-by-reference function declarations where the value is not modified. * Adding some braces to if-else blocks. * In Parser.php, stripstrate is now an object rather than an array as per r17820, so we no longer need ask for a reference to it (as in "$x =& $this->mStripState;"), and in fact it's probably just simpler to get rid of $x altogether. * Moving some preg regexes from "" quoting to '' quoting to stop static analyzer whinging about bad escape sequences. ... up to "LinksUpdate.php" in the includes/ directory. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17880
* * Introduced StringUtils.php, populated it with some generic string ↵Tim Starling2006-11-211-12/+2
| | | | | | | | | | | | | | functions, both new and collected from various other files. * Removed some backtracking regexes with an O(N^2) worst case, replaced with StringUtils::delimiterReplace(). There is a beneficial functional difference: /*/ is no longer considered to be a complete CSS comment. * Changed the parser strip state from an array to an object. This should hopefully avoid the PHP bugs with array references. StripState uses the new ReplacementArray to do the replacements, thereby supporting FSS. * Removed DatabaseFunctions.php from the default startup sequence. Moved wfGetDB() to GlobalFunctions.php. * Introduced the SiteStats class, with a collection of cached site stats accessor functions. * Removed all global functions from Parser.php, they don't belong there. * Made LanguageConverter use the new ReplacementArray class instead of managing its own FSS objects. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/17820
* Removed most exit() calls from the MediaWiki core, by replacing them with ↵Tim Starling2006-06-071-1/+1
| | | | | | | either a throw or by classic error checking. OutputPage::fatalError() and similar functions are deprecated, use either OutputPage::showFatalError() to return control or throw new FatalError() to relinquish it. Backwards compatibility of all interfaces has been maintained, thus extensions should continue to work and can be ported at a later date. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/14631
* Switching from phpdoc to doxygen (use less than 32MB of memory).Antoine Musso2006-04-191-9/+52
| | | | | | | | Run maintenance/mwdocgen.php to generate doc in ./docs/html/ . Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/13740
* merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not ↵River Tarnell2005-08-021-43/+43
| | | | | | | test extensively. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10356
* * (bug 2885) Fix fatal errors and notices in PHP 5.1.0beta3Brion Vibber2005-07-221-1/+2
| | | | | | | * (bug 2931) Fix additional notices on reference use in PHP 4.4.0 Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/10239
* Implemented query group feature, needed for slow queries esp. in 1.4. ↵Tim Starling2005-04-231-2/+2
| | | | | | | Hopefully fixed lagged slave mode. Added a simple method to simulate lagged slaves. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/8540
* wfSetBufferResults no longer referenced, kill.Domas Mituzas2005-02-101-18/+0
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/7428
* Removed CVS keywords from files, to make merging between branchesEvan Prodromou2004-11-291-1/+0
| | | | | | | | easier. Interpolated keywords cause lots of conflicts and headaches at merge time for older (<1.12.x) CVS versions. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6433
* Correcting bugs due to double-prefixing table names. Removing obsolete ↵Tim Starling2004-10-241-3/+3
| | | | | | | Database member functions. Adding comments to Database.php Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/6052
* Split files and classes in different packages for phpdocumentor. I probably ↵Antoine Musso2004-09-031-2/+3
| | | | | | | changed some double quotes to single and used function foo () { shema Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/5069
* comments and comments placeholdersAntoine Musso2004-09-031-55/+139
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/5052
* Changing comments layout preparing for generated documentation with ↵Antoine Musso2004-09-021-5/+9
| | | | | | | Phpdocumentor Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/5032
* massive double to single quotes conversion. I have not noticed any bug after ↵Antoine Musso2004-08-221-7/+7
| | | | | | | a lot of testing Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4904
* Database::setIgnoreErrors() doesn't seem to exist anymore. Switched toBrion Vibber2004-08-051-1/+1
| | | | | | | Database::ignoreErrors() Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4527
* * Support for table name prefixes throughout the code. No support yet for ↵Tim Starling2004-07-181-14/+10
| | | | | | | | | | | | | converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them * DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE * Converted to use SQL wrapper functions instead of direct SQL in various places * Experimental method for preserving the chronological order of events when slave servers are used. Untested. * Fixes to the new post-parse existence test feature * Some.. other stuff Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4318
* OOP calling convention for database functions. DBMS abstraction implemented ↵Tim Starling2004-07-101-13/+37
| | | | | | | by means of functions instead of global variables, PostgreSQL object converted to a subclass instead of a drop-in replacement. Also the beginnings of a flexible table name feature. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4261
* This commit implements Josh Cogliati's "info" feature (e.g.Arne Heizmann2004-07-081-0/+9
| | | | | | | | | http://en.wikipedia.org/w/wiki.phtml?title=Wikipedia&action=info), fixes the page headings for protect/unprotect, and does a lot of whitespace changes (sorry about that). I've also fixed confusing indentation somewhere. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4242
* Load balancer bug fixesTim Starling2004-06-221-0/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4141
* Allow use of DatabaseFunctions even when errors are ignoredTim Starling2004-06-191-27/+114
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4116
* Bringing the load balancer to the main branch. Still doesn't do much. I ↵Tim Starling2004-06-151-66/+54
| | | | | | | needed a DB connection cache for my Article.php alterations, which LoadBalancer provides. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/4079
* allow empty condition for wfGetSQL()Domas Mituzas2004-06-111-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3992
* added wfFetchRow() besides wfFetchObject. Used by objectcache codeDomas Mituzas2004-06-101-0/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3974
* * include required Database object (according to database type)Domas Mituzas2004-06-091-1/+11
| | | | | | | * define wgIsMySQL and wgIsPg global variables Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3952
* include_once -> require_onceTim Starling2004-05-071-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/3502
* new function wfUpdateArray()Tim Starling2004-03-231-0/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2798
* Fix for compatibility with short_open_tag = OffBrion Vibber2004-02-181-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2485
* * Recent Changes improvements: object oriented back end, move page ↵Tim Starling2004-01-171-25/+42
| | | | | | | | | | | annotation and (untested) message queue feed. * Misc. bugs fixed in DatabaseFunctions.php and Skin.php. * install-utils, install and update utilise Database objects instead of handling their own connections * schema change for RC improvement -- added rc_type, rc_moved_to_title and rc_moved_to_ns Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2294
* object-oriented database connectionsTim Starling2004-01-101-226/+94
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2273
* Fallback to google search box when database is offlineTim Starling2003-12-261-1/+5
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2240
* Removed use of PHP persistent connections. Se URL below for details.Mr. E232003-12-131-11/+3
| | | | | | | http://meta.wikipedia.org/wiki/Why_persistent_connections_are_bad Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2191
* Removed unused function wfUnbufferedQuery().Mr. E232003-12-131-10/+30
| | | | | | | | Added wfBufferSQLResults() to turn buffering on and off. Added wfIgnoreSQLErrors() to turn automatic error page generation on and off. Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2189
* Replaced calls to exit() with wfAbruptExit().Mr. E232003-12-101-3/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2173
* Workaround to avoid regexp segfault in wfGeneralizeSQL()Mr. E232003-12-011-5/+16
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2118
* Added wfUnbufferedQuery()Mr. E232003-11-241-3/+19
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2058
* Removed dodgy regexTim Starling2003-11-221-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2037
* Fixing broken regex in wfGeneralizeSQLTim Starling2003-11-211-6/+12
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2034
* Fixed another bug in wfGeneralizeSQL(). This time it's perfect.Mr. E232003-11-191-6/+6
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2018
* Fixed another bug in wfGeneralizeSQL()Mr. E232003-11-191-1/+1
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2003
* Fixed bug in wfGeneralizeSQL() that caused strings in some queries to remainMr. E232003-11-191-2/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/2001
* Changed the way SQL queries are logged by profilingMr. E232003-11-181-1/+17
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/1994
* Security fix: include pathBrion Vibber2003-11-171-3/+2
| | | | Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/1972