Commit Graph

16 Commits (2323e5723395dd9c793b301650b69bdd0a37e273)

Author SHA1 Message Date
Dries Buytaert ff914280b9 - Synced/unified the error reporting from database.mysql.inc and database.pear.inc.
This makes debugging the PostgreSQL (and MSSQL) support somewhat easier.
2003-06-08 12:10:25 +00:00
Dries Buytaert b2583b624c Patch by Ax:
- db_query_range() in database.mysql.inc wasn't updated to match
  db_query().

- Fixed phpdoc.
2003-03-16 17:38:51 +00:00
Dries Buytaert 170b674a09 - All LIMIT queries must go through the pager or through db_query_range().
The syntax for db_query_range() was enhanced so it matches db_query(). So
  you may pass extra arguments of the SQL statement which are checked via
  check_query() and then substituted into the SQL statement. After these
  optional arguments, you always pass $from and $count parameters which
  define your range.  Most often, the $from is 0 and the count is the max
  number of records you want returned.  Patch by Moshe.

- The pager_query() function for PEAR was enhanced so that it adds  proper
  GROUP BY statement counting the number of records to be paged. Patch by
  James Arthur.

- MSSQL database scheme by Moshe.
2003-03-16 07:02:20 +00:00
Dries Buytaert 4dac201e7c - Patch by Ulf: XHTML-ified the code. 2003-01-21 22:57:43 +00:00
Dries Buytaert 6ba38a7eeb - Fixed db_query_range() in PEAR database abstraction layer. Patch by James. 2002-11-09 20:58:16 +00:00
Dries Buytaert c93ab2a21f - Added a db_query_range function. Patch by Natrak, slightly modified. 2002-11-09 20:02:41 +00:00
Kjartan Mannes 601d34ec31 - removing whitespace (+testing still). 2002-11-06 14:18:45 +00:00
Dries Buytaert fcae7030cc - Committed Jeremy's incarnation of the statistics module. Last minutes
changes include:

    * a couple of coding style changes, renamed some "stats" into
      "statistics", etc.

    * removed the "Who's online" block from the user module.

    * added db_affected_rows() to the resp. database abstraction
      layers and made the statistics module use db_affected_rows()
      instead.

    * added update logic to "update.php".
2002-10-13 12:00:50 +00:00
Dries Buytaert 547ac22a73 - Fixed function prototype of db_error(). Patch by James.
One-liners are great! :)
2002-08-26 18:23:29 +00:00
Dries Buytaert bfe5b85dbd - Applied a (modified) version of Marco's SQL sequence patch. 2002-08-20 19:29:16 +00:00
Dries Buytaert f3c8757179 - Ran the code through 'scripts/code-clean.sh': removed trailing whitespace
(and possibly tabs).
2002-05-20 07:34:38 +00:00
Kjartan Mannes b0ccafe75f - updating the PEAR db_query functions to the new format. 2002-05-01 21:31:05 +00:00
Kjartan Mannes de5b9a168d - bug fixes:
* fixed mails not being parsed properly.
    * tracker now shows user name when you view your own recent
      comments.
    * link to submission queue now points to the right place.
    * fixed jabber module.
    * theme is now activated when changed.
- applied Gerhards coding style patch.
2002-04-22 09:05:36 +00:00
Dries Buytaert 8c8b305892 - Added "query log" functionality to Drupal. Inspired by weitzman's
code/patch.
2001-12-23 21:47:02 +00:00
Kjartan Mannes 0c9b4dc173 - changed the PEAR version of db_query() to act similar to the MySQL one.
If there is an SQL error db_query() will not return a result.
2001-11-13 10:46:36 +00:00
Dries Buytaert 7c181aba6d - Made some improvements/updates to the database abstraction layer. 2001-10-31 20:33:23 +00:00