Commit graph

155 commits

Author SHA1 Message Date
Tim Starling
bad435556d Optionally use a different profile name for master queries 2006-03-28 05:11:40 +00:00
Tim Starling
2fc68d9bd7 documentation 2006-03-28 04:52:05 +00:00
Lupin
c7408b9223 trailing whitespace removal 2006-03-11 17:13:49 +00:00
Lupin
11337038b3 removing unused globals and some whitespace cleaning 2006-03-07 01:10:39 +00:00
Tim Starling
35438cbe91 options to insertSelect(), indenting 2006-02-12 02:20:32 +00:00
Tim Starling
31487e5784 removed misfeature (ignore writes while in read only mode): more trouble than it's worth 2006-01-17 16:16:43 +00:00
Tim Starling
0996a43a27 oops, bug in untested error branch 2006-01-17 12:14:27 +00:00
Tim Starling
cf4f3da185 Moved the bulk of dbsource() to Database.php. Added support for updating wikis with $wgSharedDB set (installing is still not supported) 2006-01-17 11:48:18 +00:00
Tim Starling
c9253061f2 Fixed incorrect query() parameters, left over from the brief period of time when wfQuery took a DB index as a parameter 2006-01-17 08:40:16 +00:00
Brion Vibber
266d41f165 * Added wfDie() wrapper, and some manual die(-1), to force the return code
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Brion Vibber
ed5ed599a0 * Remove obsolete killthread.php 2006-01-14 02:37:55 +00:00
Domas Mituzas
44ab92339b miliseconds...
* Do not check master lag
* check just thread counts on SHOW STATUS, less bits on wire, less rows to handle for php
2006-01-10 10:59:09 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7 * s~\t+$~~ 2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec * s~ +$~~ 2006-01-07 13:09:30 +00:00
Tim Starling
2084c1432e Ignore negative lag 2006-01-04 22:45:55 +00:00
Tim Starling
81217f55a0 * Added templatelinks table. The table currently represents a literal list of templates included from each article. That is, the table contains pages which were actually loaded during parsing, not the markup which went into resolving their names.
* Ended the role of $wgLinkCache in link updates. Instead, links (and related entities) are registered in the ParserOutput object during a parse. The LinksUpdate constructor now takes a ParserOutput object as a parameter. $wgLinkCache is still used, but only as a cache of article IDs.
* Because the link list is now saved and restored in the parser cache, meta tag keywords now work on parser cache hits. Some refactoring took place in this area.
* Rendering of the HTML for category links has moved from Parser to OutputPage.
* Did some general pottering around in Article.php, such as allowing an Article object to be created with a specified revision ID, thereby optionally removing the dependence on $wgRequest. Not used at the current time.
* A few documentation tweaks.
2005-12-30 09:33:11 +00:00
Brion Vibber
6d7f0d100f * Fix raw sitenotice display on database error 2005-12-22 06:30:39 +00:00
Brion Vibber
d815ca352f * (bug 4201) Fix user-talk mode for Enotif, and general code cleanup
- treat NULL properly in watchlist lookup for notification sending
- consolidate a lot of ugly code that fiddles in those tables
- use user_newtalk consistently in enotif mode; watchlist for email notifications, user_newtalk for on-screen message and status check
- clean up handling of other peoples' user_talk pages when in the talk-only limited enotif: only your own will get sent, not other people watching your page
- and others watching your page _will_ work in watchable enotif mode
- add a watch on page + talk page consistently for the auto-add of the user talk page, not just half the page
- don't unwatch the user talk page on view! that's just wacky
- removed UserTalkUpdate, now redundant
- have User::setNewTalk() apply immediately
- clear newtalk from User::clearNotification() and User::clearAllNotifications()
2005-12-07 11:52:34 +00:00
Ævar Arnfjörð Bjarmason
c2f8e2604a * Typo: $dbname => $dbName 2005-12-01 07:00:11 +00:00
Domas Mituzas
678a225167 move function name comment from start of query string to a next whitespace
simply makes query cache work ;-D
2005-11-12 16:17:01 +00:00
Tim Starling
af47b8260c Ability to set the blobs table name for any server in an external cluster. This would allow, for example, the merging of all external storage for a large wikipedia dump into a single database, with "clusters" distinguished by table name. 2005-10-29 01:41:36 +00:00
Tim Starling
5ef53bb049 Give informative connection errors more often 2005-10-28 01:08:49 +00:00
Brion Vibber
10eab6d489 * (bug 3786) Experimental support for MySQL 4.1/5.0 utf8 charset mode
NOTE: Enabling this may break existing wikis, and still doesn't
  work for all Unicode characters due to MySQL limitations.

The $wgDBmysql5 option will run 'SET NAMES utf8' on connection to the
server so it knows we're speaking UTF-8 to it; switching it on/off
can cause interpretation of non-blob columns to change depending
on the charset options set on the server.
2005-10-26 01:45:23 +00:00
Brion Vibber
219094eb01 Committing various live hacks from Wikimedia servers 2005-10-22 20:52:30 +00:00
Tom Gilder
4d1bc8009e "$wgSitename is offline" is a bit harsh if it's just a one-off glitch, change to "has a problem" 2005-10-10 18:02:50 +00:00
Tom Gilder
849028aeff Even better: use the site name and logo to look all pretty whilst buggered, like a cheap whore with too much makeup 2005-10-06 03:24:02 +00:00
Tom Gilder
04b593761c Marginally better database error 2005-10-06 03:18:52 +00:00
Ævar Arnfjörð Bjarmason
32fc405ea7 * Support for specifying USE INDEX for any of >1 tables 2005-10-02 16:10:39 +00:00
Ævar Arnfjörð Bjarmason
7062f265a7 * Source cleanup 2005-08-29 16:36:37 +00:00
Brion Vibber
1fc8be3b12 * (bug 2885) More PHP 5.1 fixes: skin, search, log, undelete 2005-08-28 21:58:14 +00:00
Brion Vibber
b1a49e2d5b Drop MySQL 3.23.x support; 4.0 or greater required. 2005-08-26 23:02:54 +00:00
Tim Starling
0336da0f66 Workaround for occasional fatal 2005-08-23 16:54:45 +00:00
Erik Moeller
6f32e27ac3 Bug #1956: Hide bot uploads in Special:Newimages
This should work with any user/group setup. It should also interact cleanly
with the other Special:Newimages functions (paging, searching, most recent
uploads).
2005-08-21 01:17:46 +00:00
Tim Starling
4d6079f554 added flags accessor, fixed select/update option array bugs 2005-08-14 14:42:54 +00:00
Tim Starling
34331f8e2a fixed connection error handling 2005-08-14 04:42:55 +00:00
Brion Vibber
63b84a95d4 * (bug 3056) MySQL 3 compatibility fix: USE INDEX instead of FORCE INDEX
* PHP 4.1 compatibility fix: don't use new_link parameter to mysql_connect
  if running prior to 4.2.0 as it causes the call to fail
2005-08-11 11:33:18 +00:00
Domas Mituzas
6de72cbbfe add escaping routines for LIKE: db::escapeLike($s) 2005-08-09 13:25:42 +00:00
Antoine Musso
9d19c185d3 I really meant 3 parameters as kate made it in ORACLE stuff. 2005-08-09 10:37:37 +00:00
Antoine Musso
315d6d6188 limitResult() use 3 argument since ORACLE merge 2005-08-09 10:30:20 +00:00
Niklas Laxström
e0734599a0 I guess we can support OFFSET too, or can we? 2005-08-02 21:02:49 +00:00
Ævar Arnfjörð Bjarmason
5ae00ae91a * Remove troublesome double array 2005-08-02 14:37:39 +00:00
River Tarnell
b817c0c15f merge ORACLE_WORK. sorry, this may break some parts of MySQL, i did not test extensively. 2005-08-02 13:35:19 +00:00
Tim Starling
79c63c1e0e profiling 2005-07-27 01:32:54 +00:00
Domas Mituzas
bb7fae687c Commit live hacks:
* add function name to profiling name of sql queries
* change USE INDEX to FORCE INDEX, we use that where we really need to, so it won't hurt
2005-07-22 14:05:58 +00:00
Brion Vibber
b0c41ad13b * (bug 2885) Fix fatal errors and notices in PHP 5.1.0beta3
* (bug 2931) Fix additional notices on reference use in PHP 4.4.0
2005-07-22 11:29:15 +00:00
Ævar Arnfjörð Bjarmason
58acbe58d8 * Formattingofcondensedcode 2005-07-21 21:05:02 +00:00
Ævar Arnfjörð Bjarmason
0bb7e5fa8b * Made makeUpdateOptions() DBMS independant 2005-07-18 05:40:24 +00:00
Ævar Arnfjörð Bjarmason
66b32fa017 * Modified the update function to take another argument, $options, it now
supports queries like
  $dbr->update( 'user', array( 'user_name' => 'foo' ), array( 'user_name => 'bar' ), '', array('IGNORE')
  to make UPDATE IGNORE ..
* Documented Database::update()
2005-07-18 02:30:04 +00:00
Brion Vibber
32e1a5dfc7 Revert 1.106, needless complication that duplicates existing functionality with harder to read syntax.
Use array('user_id=user_name') to do the same, already used in existing code.
2005-07-16 00:03:52 +00:00
Ævar Arnfjörð Bjarmason
390126e92b * Make it possible to use the Database.php class to make queries like
SELECT * FROM user WHERE user_id = user_name; (note the lack of quotes),
  use array('user_id' => array(false, 'user_name')) to do this.
2005-07-14 17:00:54 +00:00