Tim Starling
b96b707efa
OOP calling convention for database functions. DBMS abstraction implemented 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.
2004-07-10 03:09:26 +00:00
Arne Heizmann
6deed7d83e
This commit implements Josh Cogliati's "info" feature (e.g.
...
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.
2004-07-08 14:53:54 +00:00
Tim Starling
2ba9d12c88
Load balancer bug fixes
2004-06-22 08:54:26 +00:00
Tim Starling
bafbebea13
Allow use of DatabaseFunctions even when errors are ignored
2004-06-19 06:45:22 +00:00
Tim Starling
b5ef8d221b
Bringing the load balancer to the main branch. Still doesn't do much. I needed a DB connection cache for my Article.php alterations, which LoadBalancer provides.
2004-06-15 15:00:54 +00:00
Domas Mituzas
4f8be09d65
allow empty condition for wfGetSQL()
2004-06-11 14:33:29 +00:00
Domas Mituzas
83a3aa9f8f
added wfFetchRow() besides wfFetchObject. Used by objectcache code
2004-06-10 13:02:27 +00:00
Domas Mituzas
f518414fb6
* include required Database object (according to database type)
...
* define wgIsMySQL and wgIsPg global variables
2004-06-09 16:13:04 +00:00
Tim Starling
8f22cb45b1
include_once -> require_once
2004-05-07 13:43:10 +00:00
Tim Starling
cc73aa698b
new function wfUpdateArray()
2004-03-23 10:17:50 +00:00
Brion Vibber
0332f4c598
Fix for compatibility with short_open_tag = Off
2004-02-18 02:15:00 +00:00
Tim Starling
3c96949682
* Recent Changes improvements: object oriented back end, move page 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
2004-01-17 05:49:39 +00:00
Tim Starling
a4c652b0ff
object-oriented database connections
2004-01-10 16:44:31 +00:00
Tim Starling
fb7e47dbd7
Fallback to google search box when database is offline
2003-12-26 01:16:15 +00:00
Mr. E23
b502c51bd3
Removed use of PHP persistent connections. Se URL below for details.
...
http://meta.wikipedia.org/wiki/Why_persistent_connections_are_bad
2003-12-13 22:38:26 +00:00
Mr. E23
651ccd8322
Removed unused function wfUnbufferedQuery().
...
Added wfBufferSQLResults() to turn buffering on and off.
Added wfIgnoreSQLErrors() to turn automatic error page generation on and off.
2003-12-13 20:26:47 +00:00
Mr. E23
53fba653e0
Replaced calls to exit() with wfAbruptExit().
2003-12-10 15:05:08 +00:00
Mr. E23
80c11c6b49
Workaround to avoid regexp segfault in wfGeneralizeSQL()
2003-12-01 00:28:25 +00:00
Mr. E23
a2d29cc28d
Added wfUnbufferedQuery()
2003-11-24 19:33:26 +00:00
Tim Starling
6fc5803ca8
Removed dodgy regex
2003-11-22 06:55:07 +00:00
Tim Starling
a589b36083
Fixing broken regex in wfGeneralizeSQL
2003-11-21 06:23:54 +00:00
Mr. E23
ed60944f12
Fixed another bug in wfGeneralizeSQL(). This time it's perfect.
2003-11-19 17:09:42 +00:00
Mr. E23
8e4ec6434d
Fixed another bug in wfGeneralizeSQL()
2003-11-19 02:07:23 +00:00
Mr. E23
3cd2cdb3d5
Fixed bug in wfGeneralizeSQL() that caused strings in some queries to remain
2003-11-19 01:19:47 +00:00
Mr. E23
2044513a36
Changed the way SQL queries are logged by profiling
2003-11-18 23:43:41 +00:00
Brion Vibber
d3c61d791d
Security fix: include path
2003-11-17 03:00:18 +00:00
Brion Vibber
def0193f31
Use wfMsg()'s parameters
2003-11-15 14:11:30 +00:00
Tim Starling
46787701ce
Nov. branch merge. Various features backported from stable, various bug fixes.
2003-11-09 11:45:12 +00:00
Tim Starling
ee4c7f2f49
Various fixes, see the version of [[m:Development status]] before this commit for details
2003-11-02 13:57:24 +00:00
Tim Starling
a2bc5d8338
MediaWiki namespace
2003-09-21 13:10:10 +00:00
Tim Starling
b32d1ece40
More wfQuery() conversion
2003-09-20 13:24:31 +00:00
Tim Starling
436d389650
changing wfQuery to allow replication
2003-09-20 02:30:00 +00:00
Brion Vibber
b025e06871
Experimental patch to partially protect against simultaneous edit bug by
...
adding the conflict check to the UPDATE on cur and moving it up before
the INSERT to old. Should throw edit conflict instead of overwriting
a different revision.
2003-08-17 11:58:33 +00:00
Brion Vibber
b5a5d8c46c
oops
2003-08-09 10:25:30 +00:00
Brion Vibber
1b84372877
Alternate db connect, use proper charset in abort page
2003-08-09 10:08:23 +00:00
Brion Vibber
c6879704ab
Move file cache functions into CacheManager class (in CacheManager.php)
...
and add support for showing the cached version of a page if unable to
contact the database.
Also add 'Vary: Accept-Encoding' to headers for every output, just to
make sure.
2003-08-02 10:13:27 +00:00
Brion Vibber
f92d41d6c3
Date/time fixes: try to ensure that timestamps are always kept in GMT, with conversion where necessary.
2003-06-30 01:33:16 +00:00
Lee Daniel Crocker
d82c14fb4f
Initial revision
2003-04-14 23:10:40 +00:00