Commit graph

120 commits

Author SHA1 Message Date
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
Brion Vibber
0a5bd473fd fix deadlock loop 2005-03-13 06:43:33 +00:00
Jens Frank
9ce0e67162 Allow an array of tables for insertSelect() 2005-01-30 19:34:07 +00:00
Antoine Musso
7e901668b2 fix phpdoc comment 2005-01-27 18:28:30 +00:00
Tim Starling
59717e5161 Merging server feature from REL1_4 2005-01-14 13:03:34 +00:00
Tim Starling
2682b7db86 Fixed problem with missing query errors, noticed in installer but I seem to remember seeing it before 2005-01-14 13:00:17 +00:00
Antoine Musso
991f798587 * Remove some hardcoded 0 instead of NS_MAIN
* Note in define.php that people should NOT change the integer values for NS_* constants
2005-01-11 18:18:16 +00:00
Tim Starling
da7f1649dd Fixing synchronisation bug: can't open a transaction before calling MASTER_POS_WAIT(), because you get consistent reads. Instead, we commit any open transaction, then call doQuery() directly, thereby avoiding re-opening it. 2004-12-22 03:58:25 +00:00
Brion Vibber
64ac6b8e77 Merge SCHEMA_WORK into HEAD. Lots of changes, some things are probably broken:
* Page moves/overwrites are a little iffy
* Compression might not be working right
* Profit!
2004-12-19 08:00:50 +00:00
Brion Vibber
1fd8260c25 Allow empty array in select() for the where conditions 2004-12-13 03:54:56 +00:00
Tim Starling
6d4ce2a3bd Fixed connection errors yet again, hopefully in a more robust way this time 2004-12-12 04:44:17 +00:00
Evan Prodromou
4b42f18b66 Removed CVS keywords from files, to make merging between branches
easier. Interpolated keywords cause lots of conflicts and headaches at
merge time for older (<1.12.x) CVS versions.
2004-11-29 18:25:30 +00:00