Sam Reed
b3d0f35aee
Remove unreachable return
...
Swap "dieout" for "die" in DatabaseMssql
2011-02-27 00:29:21 +00:00
Sam Reed
b30dd0d98c
Fixup assignment in loop
...
comment out undefined variable used in function call
2011-02-18 22:59:01 +00:00
Sam Reed
b35adc8934
Fixup whitespace, brackets etc
...
Remove usage of @
2011-02-18 22:49:56 +00:00
Chad Horohoe
a5053d4c5a
* Cleanup massive duplication across Database constructors. Default implementation fairly sane. Now they all share the same if( $server ) logic to allow constructing the class without forcing open a connection (MySQL has done this since at least r15094)
...
* Get rid of intermediate installTables() callback
* Actually cache the result of DbInstaller::getConnection() like the documentation says
2011-01-24 18:36:09 +00:00
Chad Horohoe
4ece90ed4b
Remove ancient and deprecated newFromParams() constructor wrappers from various DatabaseBase implementations. Only callers are AskSql and WikiTrust. Both are calling the (very old) Database class anyway, so are obviously expecting a MySQL connection and can use the fallback (which yells wfDeprecated) in DatabaseBase
2011-01-07 20:25:52 +00:00
Chad Horohoe
b61756cdea
Followup r73348, r70608: move 'infinity' stuff to DB classes
2011-01-05 13:43:13 +00:00
Roan Kattouw
475c331f60
Remove now-unused SQL timestamp conversion functions added in r77231. They were made obsolete by the querypage-work2 branch merge in r78786
2010-12-31 16:29:44 +00:00
Daniel Friesen
aae05c49f8
MySQL is the only database which quotes identifiers primarily using backticks. Move the backtick based addIdentifierQuotes implementation from the generic into DatabaseMysql and take the duplicated implementation used by oracle, sqlite, ibm_db2, postgresql, and mssql and remove it from all of them migrating it to the generic Database class as the default.
2010-12-04 15:35:36 +00:00
Daniel Friesen
692ad26f68
Followup to r77713, rename quote_ident to addIdentifierQuotes to follow naming conventions better. While I'm at it adding a missing addIdentifierQuotes implementation for Ibm_db2.
2010-12-04 15:14:08 +00:00
Sam Reed
76555b68ad
qualify call to array_to_obj
...
Followup r70608
2010-11-30 18:52:49 +00:00
Sam Reed
cadc951d15
More reversion of r77297, 1 of 2 commits to keep it readable in CR (hopefully)
2010-11-25 22:24:11 +00:00
Antoine Musso
6fe29c9c30
revert r76464
...
* mixed style changes and variable removing
* logic changes
* useful comments removed
2010-11-25 20:01:34 +00:00
Alexandre Emsenhuber
6cb276056b
Moved switches in Special:Unusedimages and Special:Ancientpages to extract a unix timestamp from a fielf to DatabaseBase and related classes to avoid code duplication
2010-11-24 15:40:25 +00:00
Antoine Musso
af7558aa94
dieout() now default to empty text. follow up r76165
2010-11-23 20:39:04 +00:00
Max Semenik
4345c2c20e
Refactoring of *Field classes:
...
* Made them all implement one common interface (might add more functions to it later)
* Moved MySQLField to DatabaseMysql.php
* Renamed nullable() to isNullable()
* Removed maxLength() from:
** SQLiteField: makes no sense
** MySQLField: doesn't do what people may think, useless for this class' purpose of assisting querying the DB schema
2010-11-21 19:56:51 +00:00
Sam Reed
10ecfeb03b
Various unused variables, add some braces
...
Explicitally define some variables used in hook type calls
2010-11-10 19:49:04 +00:00
Platonides
4147b8a5bb
dieout() function already takes into account if a </ul> is needed.
2010-11-05 23:36:30 +00:00
Sam Reed
39c005ca79
bug 25517 Assignment in conditions should be avoided/ http://www.mediawiki.org/wiki/Manual:Coding_conventions#Assignment_expressions
2010-11-01 00:07:17 +00:00
Sam Reed
604ae0ca1c
Update deprecated method calls
...
Remove some unused stuff
2010-10-31 16:20:48 +00:00
Sam Reed
d189aaee05
(bug 24853) Kill failFunction - Fixed! :D
2010-10-24 21:27:33 +00:00
Sam Reed
16cded8b32
Start of bug 24853, killing off 'functional' parts of failfunction code. Seems when the constructors start getting changed, it starts borking. Using this as a point of reversion/stashing
2010-10-24 20:48:48 +00:00
Sam Reed
6b3b915353
Big attack on unused variables...
2010-10-14 20:53:04 +00:00
Sam Reed
a2589ff8c6
Assignment in loop conditions suck
...
while ( $row = $dbw->fetchObject( $res ) ) { to foreach ( $res as $row ) in includes
Add some braces
2010-10-13 23:11:40 +00:00
Platonides
c780168f9f
Follow up r74135 removing the globals, too.
...
htmlescape the global.
2010-10-10 14:39:16 +00:00
Max Semenik
64acd61377
Fix botched up comments
2010-10-02 18:45:18 +00:00
Alexandre Emsenhuber
7ce38e5006
removed some unused variables
2010-10-02 08:31:55 +00:00
Alexandre Emsenhuber
1da312a72e
Fix for r74134: copy-paste error
2010-10-02 08:30:03 +00:00
Alexandre Emsenhuber
1360aadafd
removed call to deprecated function dbsource() and a comment that mentioned it
2010-10-02 08:29:01 +00:00
Alexandre Emsenhuber
3c386b90cb
__FUNCTION__ -> __METHOD__
2010-10-02 08:04:58 +00:00
Jack Phoenix
1252d00372
trim trailing spaces
2010-09-05 18:00:33 +00:00
Aryeh Gregor
338ae40072
Suggest running update.php on database error
...
This is a pretty frequently asked question in #mediawiki -- most
database errors are probably due to not running update.php.
2010-09-05 17:40:47 +00:00
Sam Reed
e04cd31791
Change usages of Database:: for function names in DatabaseMssql to DatabaseMssql::
2010-08-25 15:58:58 +00:00
Sam Reed
bb6b4ba0cb
Whitespace, I hate you.
2010-08-24 22:44:44 +00:00
Sam Reed
8a01281913
Remove some unreachable code (usually returns after throwing exceptions)
...
Fixup call of method after return in DatabaseMssql by using a temp
2010-08-24 22:03:18 +00:00
Chad Horohoe
e0cb9ef9b6
Make getSoftwareLink() static so I can use it without instantiating (and opening) a bunch of databases I probably can't support. Can't have an abstract parent now, so throw an exception for anyone who writes a child class without bothering to implement it. All of this to add some helpful text links in an infobox in the installer :)
2010-08-22 20:55:07 +00:00
Alexandre Emsenhuber
c72516a428
Fixed some doxygen warnings
2010-08-22 15:58:59 +00:00
Platonides
5d98e13b78
Try to address some of the issues of r70608.
...
@yaauie: Set the error_level in your php.ini, do not use calls to error_reporting() for that.
2010-08-21 14:33:32 +00:00
Sam Reed
721ecb6d2d
Remove some more unused variables
...
Remove srvus() from Parser, unused, and calling testSrvus wrongly
2010-08-19 11:21:14 +00:00
Sam Reed
85af1b0901
Revert r71250 r71251 r71252 r71253
...
Know what the problem is, roughly, can't fix atm, so not leaving phase3 broken
2010-08-18 14:15:32 +00:00
Sam Reed
9ea1f1d388
Kill some crappy "failFunction" stuff, marked as old in r14625
2010-08-18 13:38:42 +00:00
Sam Reed
9efab26ecd
Remove a few more unused variables
2010-08-13 08:09:52 +00:00
Platonides
f971e24aee
Added missing $ to variable.
...
Removing (unused) global $wgDBts2schema about Postgres tsearch2
2010-08-12 14:46:32 +00:00
Chad Horohoe
4c74490bb8
Big commit: kill almost every freeResult() call as useless
2010-08-08 12:27:48 +00:00
Alexandre Emsenhuber
c8a9e82d97
* changed @addtogroup to @ingroup
...
* added @file
2010-08-07 20:28:58 +00:00
Max Semenik
043187edbf
Follow-up r70608: you don't need to override this stuff with empty functions, they're empty in the base class already
2010-08-07 05:10:02 +00:00
Ryan Bies
070122e8b9
DatabaseMssql class and related changes
2010-08-06 23:44:00 +00:00
Chad Horohoe
967510a4b6
Remove current MSSQL implementation from trunk. See wikitech-l for discussion.
2010-04-21 16:29:29 +00:00
Max Semenik
fce6a52cf9
Fix r63320
2010-03-06 16:45:48 +00:00
Max Semenik
e78af18401
Fixed a couple of E_DEPRECATED in DatabaseMssql
2010-03-06 16:39:31 +00:00
Tim Starling
fd3794c5bc
For r60757: implement Database::getType() explicitly in each subclass, to make Roan happy.
2010-01-08 00:31:24 +00:00