MySQL error codes
|Reported by:||vipsoft||Owned by:||vipsoft|
Checking for MySQL error codes (via preg_match) are sprinkled in places in the code. (i.e., core/Updater.php, core/Updates/*.php, Dashboard.php, ExampleFeedburner.php, Installation/Controller.php, LanguagesManager.php)
To assist the non-MySQL Piwik ports, we should switch the detection to SQL codes, e.g.,
- '/1146/' becomes '/\[42S02\]/'
- '/1054/' becomes '/\]42S22\]/'
Throwing custom exceptions would be a nice-to-have, e.g.,
Change History (5)
comment:4 Changed 5 years ago by vipsoft (robocoder)
- Milestone changed from 2- DigitalVibes to 1 - Piwik 0.4.4
- Owner set to vipsoft
- Priority changed from low to normal