Lupin
11337038b3
removing unused globals and some whitespace cleaning
2006-03-07 01:10:39 +00:00
Lupin
74e1db122f
whitespace
2006-03-06 04:20:20 +00:00
Brion Vibber
266d41f165
* Added wfDie() wrapper, and some manual die(-1), to force the return code
...
to the shell to return nonzero when we crap out with an error.
2006-01-14 02:49:43 +00:00
Brion Vibber
ed5ed599a0
* Remove obsolete killthread.php
2006-01-14 02:37:55 +00:00
Ævar Arnfjörð Bjarmason
a26d5a49d7
* s~\t+$~~
2006-01-07 13:31:29 +00:00
Ævar Arnfjörð Bjarmason
7bbe971aec
* s~ +$~~
2006-01-07 13:09:30 +00:00
Antoine Musso
2ca68a256d
Clean up unused globals!
2005-12-04 18:27:59 +00:00
Antoine Musso
315d6d6188
limitResult() use 3 argument since ORACLE merge
2005-08-09 10:30:20 +00:00
Brion Vibber
0ec9477897
* Fix string escaping with PostgreSQL
2004-12-08 19:51:30 +00:00
Domas Mituzas
d5c4b8b49a
fix really outdated comments
2004-12-03 11:44:27 +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
Domas Mituzas
f613c0aa4a
tableName: change backticks into double quotes for parent-transformed table names
2004-11-05 10:22:03 +00:00
Brion Vibber
a263b7c9f0
Let Database do the quoting of the 'group' table, so that prefixed tables will work.
2004-10-24 22:02:02 +00:00
Tim Starling
412eda0517
Correcting bugs due to double-prefixing table names. Removing obsolete Database member functions. Adding comments to Database.php
2004-10-24 07:10:33 +00:00
Domas Mituzas
9ee05e3f39
add db::setSchema() for specifying additional database namespaces.
...
allows easy putting of external modules in separate logical namespaces.
2004-09-30 18:56:10 +00:00
Domas Mituzas
9ee14e9268
Add schema (logical namespace) support, table prefixes are not needed for PG...
2004-09-17 13:47:28 +00:00
Domas Mituzas
3936597c23
commit in resource efficient textFieldSize() (uses PG internal schema)
2004-09-11 14:08:52 +00:00
Domas Mituzas
ed7dc234b2
add aggregateValue(), as some databases require different aggregated value specifications in HAVING and ORDER clauses
2004-09-09 12:04:39 +00:00
Domas Mituzas
378956d652
add indexUnique()
2004-09-09 07:12:11 +00:00
Brion Vibber
52b1b6e9c3
Add Database::conditional() function to build IF() or CASE statements
...
depending on the RDBMS used. Allowed NULL in some RC fields on PostgreSQL.
Fix for bug 407: rebuildrecentchanges.php fails on PostgreSQL
http://bugzilla.wikipedia.org/show_bug.cgi?id=407
2004-09-09 00:02:38 +00:00
Brion Vibber
24619e4c66
Add Database::getSoftwareLink() and Database::getServerVersion(), and use
...
those in Special:Version.
Fixes bug 388: Special:Version shows MySQL version when using PostgreSQL
http://bugzilla.wikipedia.org/show_bug.cgi?id=388
2004-09-08 20:36:41 +00:00
Brion Vibber
631eda22a1
replace fixes:
...
* use array_keys() instead of array_flip() to get the keys, since the latter fails with NULL data
* where there is a single-column unique index, don't forget the initial paren since it's going to get closed [fix for <math> rendering]
2004-09-07 08:37:50 +00:00
Domas Mituzas
6400503b5e
don't replace empty resultsets! :)
2004-09-06 09:56:29 +00:00
Domas Mituzas
5e1b4894ca
fix replace()
2004-09-06 08:30:42 +00:00
Domas Mituzas
2102ffc309
oops, register_globals security flaw
2004-09-06 06:58:53 +00:00
Domas Mituzas
b915f61689
allow empty server
2004-09-06 06:57:32 +00:00
Antoine Musso
ba2afcd9fa
Split files and classes in different packages for phpdocumentor. I probably changed some double quotes to single and used function foo () { shema
2004-09-03 23:00:01 +00:00
Antoine Musso
90155b8a97
Changing comments layout preparing for generated documentation with Phpdocumentor
2004-09-02 23:28:24 +00:00
Domas Mituzas
f6f431971d
treat every array as an array, not only with option IGNORE,
...
IGNORE single-row inserts as well, if specified.
2004-09-01 12:27:57 +00:00
Antoine Musso
3d60242fb5
massive double to single quotes conversion. I have not noticed any bug after a lot of testing
2004-08-22 17:24:50 +00:00
Domas Mituzas
e8af2247e9
fix $mLastResult, affectedRows()
2004-08-20 12:46:40 +00:00
Domas Mituzas
2b94d61317
add reportQueryError, halting on any error
2004-08-19 13:00:34 +00:00
Domas Mituzas
8aa6ebc2da
Add Database*::timestamp(), using wfTimestamp()
2004-08-10 11:12:18 +00:00
Brion Vibber
62e98ad47c
Suppress some more warnings on separate execution of files. Shouldn't
...
be anything exploitable, it's just annoying.
2004-08-06 22:30:47 +00:00
Brion Vibber
1c7177a65c
Fix parse error (missing semicolon). Don't know if this runs currently though.
2004-08-06 21:33:51 +00:00
Tim Starling
1773cd1e76
* Introducing bit field for database parameters
...
** Database constructor calling sequence, and Database::newFromParams()
** Including flags in the server initialisation structs
** Support for setting appropriate flags from legacy globals in Setup.php
** Moved some defines to Define.php so that they can be used in LocalSettings.php, most importantly the bit field constants
* Changes related to post-parse link colouring
** Turn the link cache back on when using it for updating the links table
** No longer need to call preFill() on page view
* Better synchronisation of slave servers
** Rearranged getConnection()
** System for beginning and committing transactions when multiple connections are open
** wfAbruptExit() commits transactions, wfErrorExit() does not. Various functions changed to use wfErrorAbort()
* Allowed reporting of database errors during deferred updates by moving them above output()
2004-07-24 07:24:04 +00:00
Tim Starling
ac549401d4
* Support for table name prefixes throughout the code. No support yet for converting static SQL, which also means no installation. But it has been tested by creating the tables in the ordinary way and then renaming them
...
* DB_WRITE now called DB_MASTER, DB_READ now called DB_SLAVE
* Converted to use SQL wrapper functions instead of direct SQL in various places
* Experimental method for preserving the chronological order of events when slave servers are used. Untested.
* Fixes to the new post-parse existence test feature
* Some.. other stuff
2004-07-18 08:48:43 +00:00
Domas Mituzas
d9e1fc0a6d
Unbreak the class (some unfinished code inside replace())
...
Alias DatabasePgsql as DatabasePostgreSQL (according to filename)
2004-07-15 15:09:32 +00:00
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
Tim Starling
3c4d38faee
Removed arbitrary change in timestamp formats between MySQL and PostgreSQL, moved global functions to GlobalFunctions
2004-06-29 12:23:59 +00:00
Domas Mituzas
56589ff499
fix isOpen (mOpened was not defined on connect)
2004-06-21 12:07:41 +00:00
Tim Starling
49749f3091
wfSetRef doesn't work, making isWindows() function which I was going to use somewhere else but decided against it
2004-06-12 06:05:02 +00:00
Domas Mituzas
5f2b3f41e0
* fix affected_rows, uses resultset instead of connection as an argument
...
* allow wfGetSQL to fetch non-table variables
* InvertTimestamp creates old-style inverse timestamp
* insertArray needed quote-fixing
* added wfLimitResult function, in order to solve SQL LIMIT incompatibilities
2004-06-11 14:32:05 +00:00
Domas Mituzas
83a3aa9f8f
added wfFetchRow() besides wfFetchObject. Used by objectcache code
2004-06-10 13:02:27 +00:00
Domas Mituzas
654052ad23
* PostgreSQL does not have buffered/unbuffered modes.
...
There's no need for that due to row-level locking.
* pg_result_error is for asynchronous operation.
Maybe in future it could be nice, but now we
perform only one request at a time.
2004-06-10 06:37:12 +00:00
Domas Mituzas
81138304bd
* fixed indexExists
...
* wfStrencode now uses pg_escape_string instead of addslashes
* timestamp functions designed to use internal PG timestamp
2004-06-09 16:13:46 +00:00
Antoine Musso
99afe8250e
typo, looks like objectcache need rewrite cause postgresql doesnt have a FROM_UNIXTIME() function
2004-06-07 11:19:03 +00:00
Antoine Musso
d7eb2f8c1d
DO NOT USE ! Simple database layer for postgresql based on existing mysql one. I dont think it even works but I want to share the ongoing work on this.
2004-06-07 02:59:58 +00:00