Chris Morgan
13fe229774
Pass a valid link resource to mysql_real_escape_string()
2008-06-01 00:19:49 -04:00
Alexander Nicolaysen Sørnes
3a228f9419
Die if failing to establish a MySQL connection
2008-01-27 12:20:59 -05:00
Chris Morgan
c3f47364ae
Pass database link handle to database error retrieval functions so we retrieve the error from the correct database connection. Add explicit link handle to query_error() and remove the option to not specify an error.
2007-10-28 22:05:26 -04:00
Chris Morgan
e0e19c26a7
Stop script processing upon mysql error. Based on a patch by Alexander Sornes.
2007-09-18 20:51:28 -04:00
Chris Morgan
6119246b51
Replace direct mysql_xxx() calls with query_xxx() calls. Replace calls to mysql_insert_id()
...
with calls specific to the appdb or bugzilla database. Fixes a bug where a call to
mysql_insert_id() can potentially retrieve an id from either the bugzilla or appdb database,
depending on whichever database was last opened by mysql_connect().
2007-08-03 23:27:25 +00:00
WineHQ
b858e2ba53
Unit tests should run with E_ALL so we can detect all errors. Fix dozens of errors that popped up after enabling all errors.
2006-11-25 17:24:44 +00:00
Chris Morgan
1a5f9b3b0f
query_error() can infinitely recurse as errors are inserted into the database and if the database doesn't exist
...
then the db insertion will fail and result in a call to query_error(). Once we've entered query_error() once if we enter it
again we should simply return
2006-09-26 02:10:57 +00:00
Chris Morgan
311081fda5
Handle mysql transaction deadlocks more gracefully by making multiple attempts when they occur
2006-07-19 19:20:16 +00:00
Chris Morgan
55065a254c
Add mysql_errno() output to error logging
2006-07-19 17:34:59 +00:00
Chris Morgan
3697e8b9c4
Swap error logging and addmsg() calls as addmsg() performs a database transaction and will clear out any error that
...
we wanted to report when error logging and calling mysql_error()
2006-07-19 17:18:16 +00:00
Chris Morgan
a651a3cdf3
Modify query_error() to log errors to a database table instead of displaying them on the screen. This should
...
let us more easily debug difficult or intermittent issues that users may not report. Add a cron to report logged
errors to appdb admins every night. Implement some basic unit tests for the new error logging code
2006-07-19 16:37:54 +00:00
Chris Morgan
0019810922
Rename include/db.php to include/query.php, all of the functions in db.php were named query_*(). Rename test_db.php to
...
test_query.php to match the rename of include/db.php. Modify include/incl.php to include query.php instead of db.php
2006-07-17 20:56:07 +00:00
Paul van Schayck
2cc48a3ca9
Remove unused files
2005-01-08 18:52:49 +00:00
Jonathan Ernst
8b412e4de1
Rename *_inc.php files to drop the '_inc'
2004-12-25 20:51:07 +00:00