  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: database.php 1863 2009-03-06 23:53:49Z hpdl $ |
| |
| 3 | + | $Id: database.php 1865 2009-03-08 22:00:36Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
|
|
 |
… |
|
69 | 69 | | $this->error_number = $error_number; |
| |
70 | 70 | | $this->error_query = $query; |
| |
71 | 71 | | |
  |
| 72 | + | trigger_error('[MYSQL] ' . $this->error . ' (' . $this->error_number . '): [QUERY] ' . $this->error_query, E_USER_WARNING); |
| |
| 73 | + | |
  |
72 | 74 | | if (isset($osC_MessageStack)) { |
| |
73 | 75 | | $osC_MessageStack->add('debug', $this->getError()); |
| |
74 | 76 | | } |