fix driver exception conversion for newer SQLite versions
Merge pull request #594 from deeky666/fix-sqlite-driver-exception-conversion

Fix driver exception conversion for newer SQLite versions