Commit graph

43 commits

Author SHA1 Message Date
River Tarnell
e8306706e8 dumpBackup should instantiate correct database class for db type
add set_timeout() method to Database
2007-03-09 02:04:36 +00:00
Leon Weber
1cda921f5a * (bug 8988) Added missing $ in error messages. 2007-02-14 16:07:18 +00:00
Greg Sabino Mullane
934d8c41e4 Add searchableIPs differentiator 2007-01-23 14:47:12 +00:00
Antoine Musso
c771fc9c96 Use Doxygen @addtogroup instead of phpdoc @package && @subpackage 2007-01-20 15:09:52 +00:00
Greg Sabino Mullane
153e82e75d Refactor versioning from setup and store number internally.
Move tsearch indexes out of tables.sql and put into setup, so 
that we can take advantage of GIN for >= 8.2
2007-01-16 04:04:55 +00:00
Greg Sabino Mullane
64b65873d5 Better checks of tsearch2 tables, schema ownership during setup. 2007-01-09 06:01:01 +00:00
Greg Sabino Mullane
765ed25069 Add implicitGroupby function to account for different database behaviors. 2007-01-02 21:34:42 +00:00
Greg Sabino Mullane
fd5115a58c Clean up some functions. 2006-12-25 22:54:01 +00:00
Greg Sabino Mullane
c576b0afa8 Add dummy selectDB function. 2006-12-25 17:25:18 +00:00
Greg Sabino Mullane
13f9951eeb Change realTimestamp to a function only, per Tim's advice. 2006-12-01 04:37:48 +00:00
Greg Sabino Mullane
5fbffc3b9e Bring reportQueryError back in sync and support the IGNORE option 2006-11-30 01:00:08 +00:00
Nick Jenkins
ae8554c45b Completing code housekeeping stuff for rest of includes/ directory: removing unused local vars, removing unused globals, replacing extract() where simple to do, declaring output arrays before calling preg_match(), and so forth. 2006-11-29 11:43:58 +00:00
Greg Sabino Mullane
38dd316259 Fix broken contribution listings with postgres by adding a new variable
to check if we are using integers or explicit timestamps.
2006-11-28 21:40:42 +00:00
Yuri Astrakhan
ccd72b22e2 forgot for prev checkin re bug 6440. Database should return all rows about a given index, not just the first. 2006-11-11 21:42:46 +00:00
Greg Sabino Mullane
d3ff4c088a Fix incorrect var name. 2006-10-31 13:31:40 +00:00
Tim Starling
3005679b0e * Removed lots of explicit require_once statements. The autoloader should theoretically be faster, because it always uses an absolute path, eliminating the need for a search, and it is never called unnecessarily. Absolute paths are also more robust in the face of odd configurations or usage patterns. Moved a few constants around to support this, they always have to be available before the method call.
* Deleted DatabaseMysql.php, no longer necessary, database classes are autoloaded. 
* Moved wfGetMimeMagic() to MimeMagic::singleton()
* Fixed a couple of __CLASS__.'::'.__FUNCTION__ things.
2006-10-03 13:00:52 +00:00
Greg Sabino Mullane
9acff5bbea Typo, thanks to Sven Klemm for catching it. 2006-09-05 01:56:09 +00:00
Greg Sabino Mullane
d63c80199d Add checks for proper Postgres version early on.
Add ctype to the tracking table.
2006-09-03 23:03:53 +00:00
Greg Sabino Mullane
5586a0a3e1 Add advanced tsearch2 config testing, attempt to force correct locale. 2006-09-03 02:44:15 +00:00
Greg Sabino Mullane
44c9799075 Tighten up tableExists SQL, fix hyperlink to tsearch2 docs. 2006-08-28 02:49:12 +00:00
Greg Sabino Mullane
1e79c1f35c By Robert Treat: try to create plpgsql if it does not exists.
Bug #7065
2006-08-19 12:43:13 +00:00
Greg Sabino Mullane
57f87f7093 Ignore all but errors when importing. 2006-08-18 16:24:48 +00:00
Greg Sabino Mullane
ff2c3f8486 Add suggestion to restart if the "impossible" happens. 2006-08-17 02:48:39 +00:00
Greg Sabino Mullane
cae1350eb2 Add concept of "strict IPs" so we don't attempt to add "" as an IP address. 2006-08-16 00:58:42 +00:00
Greg Sabino Mullane
4c6d1b3812 Explcitily grant permissions when we connect as superuser and the schema already exists. 2006-08-13 14:35:51 +00:00
Greg Sabino Mullane
bcd9e48a33 Add quote_ident function.
Overhaul setup with proper paranoid quoting.
2006-07-24 22:13:24 +00:00
Greg Sabino Mullane
7b9af4c70b Change reserved word table names "user" and "text" 2006-07-23 02:04:40 +00:00
Greg Sabino Mullane
d3d180482f Better lastErrno, from a patch on bug #6732 2006-07-21 19:34:45 +00:00
Greg Sabino Mullane
ef047e87e2 Add Postgres timestamp stuff, from the patch at bug 6632 by Robert Treat. 2006-07-18 01:40:38 +00:00
Greg Sabino Mullane
f3b22cd894 Add mCascadingDeletes and mCleanupTriggers properties to Database*, use accessor methods to determine what to delete in Article.php 2006-07-17 00:54:40 +00:00
Greg Sabino Mullane
1664054c99 Fixes for bug 6703, by Robert Treat. 2006-07-16 15:21:34 +00:00
Greg Sabino Mullane
3738fd4f72 Prevent full db open if class is being called only.
Add lots of superuser magic to the initial connection.
2006-07-16 15:20:24 +00:00
Greg Sabino Mullane
ba3459be01 Remove update_interwiki(), add setup_database() 2006-07-16 12:28:38 +00:00
Greg Sabino Mullane
623eb4f308 Add begin(), does-nothing immediatecommit() 2006-07-05 04:06:29 +00:00
Greg Sabino Mullane
327f2430ae Rewrote all the quoting stuff, including decodeBlob support
Add install check for plpgsql
Overhaul nextSequenceValue
Re-enable commit()
2006-07-05 03:59:54 +00:00
Greg Sabino Mullane
06de9f109e Add tsearch2 schema setting stuff.
Give tableExists an optional schema argument.
2006-06-29 17:24:04 +00:00
Greg Sabino Mullane
118b79abf9 Make sure search_path mojo only performed once.
Add temporary commit() method.
Add limitResultForUpdate method (does nothing).
Add update_interwiki method to parse interwiki.sql file.
2006-06-29 01:55:52 +00:00
Greg Sabino Mullane
c62197d613 Remove __construct call
Add in global port check for connect
Bump error level up
Setup initial search_path for user on setup
Fix tableExists, schemaExists, tableName, and fieldExists methods
Drop setSchema()
2006-06-28 18:05:08 +00:00
Greg Sabino Mullane
9c25534032 Add tableExists and fieldExists methods 2006-06-27 17:06:36 +00:00
Brion Vibber
908c51e127 Revert to r15092; massive breakage, unable to connect to MySQL at all 2006-06-27 16:11:47 +00:00
Greg Sabino Mullane
ef89ec541c Add concept of a distinct port separate from a server.
Add some functions to DatabasePostgres.php.
2006-06-27 15:37:35 +00:00
Greg Sabino Mullane
72f3084353 Fix last_error for connection case, change Database to __construct 2006-06-27 00:53:46 +00:00
Greg Sabino Mullane
b48bd5aa02 Rename to match other db files. 2006-06-26 23:56:47 +00:00
Renamed from includes/DatabasePostgreSQL.php (Browse further)