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
Ævar Arnfjörð Bjarmason
1807fc9c85
* GROUP BY support in makeSelectOptions()
2005-07-14 16:48:53 +00:00
Brion Vibber
e074e99c8a
Replace !! with explicit operations.
2005-07-01 05:28:07 +00:00
Tim Starling
5f56d051de
general write query suppression in read only mode
2005-06-25 13:35:30 +00:00
River Tarnell
de26c7d4ee
include error in debug output
2005-06-22 10:32:39 +00:00
Tim Starling
d5e212999a
ported refreshLinks.php improvements (and associated change to commandLine.inc and Database.php) from 1.4
2005-06-19 01:05:56 +00:00
Tim Starling
904042c07c
ported site_stats change from 1.4
2005-06-19 00:21:49 +00:00
Brion Vibber
2970a45279
* (bug 1976) fix shared user database with a table prefix set
2005-06-06 00:38:31 +00:00
Tim Starling
a12ce8f747
new load balancing algorithm
2005-06-01 06:18:49 +00:00
Brion Vibber
0207abde02
* Fix function comment in debug dump of SQL statements
...
I could swear I've fixed this thing several times.
2005-06-01 02:10:29 +00:00
Brion Vibber
e0ce5a322e
* links and brokenlinks tables merged to pagelinks; this will reduce pain
...
dealing with moves and deletes of widely-linked pages.
The updaters should be fixed up to understand future versions without the
tables there without breaking upgrades.
2005-05-26 10:23:36 +00:00
Brion Vibber
aad99df7d4
* HistoryBlobStub: the last-used HistoryBlob is kept open to speed up
...
multiple-revision pulls
* Special:Export now includes page, revision, and user id numbers by
default (previously this was disabled for no particular reason)
* dumpBackup.php can dump the full database to Export XML, with current
revisions only or complete histories.
2005-05-08 08:17:12 +00:00
Ævar Arnfjörð Bjarmason
011c75c483
* Changed makeSelectOptions() so that its paramater must always be an array
...
* Documented makeSelectOptions()
* Changed select() to always pass makeSelectOption() an array
* Cleaned up delete(), addQuotes() and useIndexClause()
2005-05-03 07:47:08 +00:00
Brion Vibber
aed4a04076
Clean up e-mail authentication code.
...
* Add Special:Confirmemail unlisted page for requesting confirmation emails and as the destination
* There is now a confirmation token separate from the login password, which is cleaner and hopefully a lot less confusing.
* Confirmation token expires after 7 days
* Added support functions for nullable timestamp columns: wfTimestampOrNull and Database::timestampOrNull
* userMailer now returns WikiError objects
* Added convenience functions to User for email management, consolidated some checks
There are changes to the user table, so run update.php
2005-04-25 18:38:43 +00:00
Tim Starling
aeab2e64a8
ported live patches
2005-04-25 03:30:24 +00:00
Tim Starling
6c1ccfd02e
Made updateSpecialPages.php more robust to database problems
2005-04-24 08:31:12 +00:00
Tim Starling
faabce5662
Automatic reconnect when the connection is lost. This hopefully won't happen much for HTTP queries, since it breaks the transaction model. But it might be useful for maintenance scripts which sleep for long periods.
2005-04-24 07:21:15 +00:00
Tim Starling
cdb3f96ab8
Various live patches ported from REL1_4
2005-04-12 04:03:21 +00:00
Tim Starling
abfd2e7500
ported improved table quoting from 1.4
2005-04-10 18:26:26 +00:00
Tim Starling
c02064779a
Add seek method to ResultWrapper
2005-04-03 07:27:25 +00:00
Tim Starling
7597b899d6
Fixed ordering of SQL debug log
2005-03-28 07:56:17 +00:00
Tim Starling
9d4d4b7779
Bought me a horizontal scrollbar, no need for this anymore
2005-03-27 17:09:48 +00:00
Tim Starling
ba9ae79212
Fixed efficiency problem with $wgSiteNotice. Introduced wfSiteNotice(), which allows the script to load it on demand instead of on every invocation
2005-03-27 16:56:11 +00:00
Tim Starling
c5381f1f87
Fixed comment
2005-03-20 14:26:37 +00:00
Brion Vibber
7150b26584
Include function name for SQL statements dumped to debug log
2005-03-18 04:22:05 +00:00