diff options
Diffstat (limited to 'psycopg/error_type.c')
-rw-r--r-- | psycopg/error_type.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/psycopg/error_type.c b/psycopg/error_type.c index 37b4d4a..60b2c48 100644 --- a/psycopg/error_type.c +++ b/psycopg/error_type.c @@ -65,6 +65,8 @@ base_exception_from_sqlstate(const char *sqlstate) switch (sqlstate[0]) { case '0': switch (sqlstate[1]) { + case '8': /* Class 08 - Connection Exception */ + return OperationalError; case 'A': /* Class 0A - Feature Not Supported */ return NotSupportedError; } |