mirror of
https://github.com/psycopg/psycopg2.git
synced 2024-11-10 19:16:34 +03:00
errorcodes map updated to PostgreSQL 9.2
This commit is contained in:
parent
526e270934
commit
7de8611607
1
NEWS
1
NEWS
|
@ -13,6 +13,7 @@ What's new in psycopg 2.4.6
|
|||
Thanks to Manu Cupcic for the report (ticket #110).
|
||||
- 'register_hstore()', 'register_composite()', 'tpc_recover()' work with
|
||||
RealDictConnection and Cursor (ticket #114).
|
||||
- 'errorcodes' map updated to PostgreSQL 9.2.
|
||||
|
||||
|
||||
What's new in psycopg 2.4.5
|
||||
|
|
|
@ -59,6 +59,7 @@ CLASS_INVALID_TRANSACTION_INITIATION = '0B'
|
|||
CLASS_LOCATOR_EXCEPTION = '0F'
|
||||
CLASS_INVALID_GRANTOR = '0L'
|
||||
CLASS_INVALID_ROLE_SPECIFICATION = '0P'
|
||||
CLASS_DIAGNOSTICS_EXCEPTION = '0Z'
|
||||
CLASS_CASE_NOT_FOUND = '20'
|
||||
CLASS_CARDINALITY_VIOLATION = '21'
|
||||
CLASS_DATA_EXCEPTION = '22'
|
||||
|
@ -139,6 +140,10 @@ INVALID_GRANT_OPERATION = '0LP01'
|
|||
# Class 0P - Invalid Role Specification
|
||||
INVALID_ROLE_SPECIFICATION = '0P000'
|
||||
|
||||
# Class 0Z - Diagnostics Exception
|
||||
DIAGNOSTICS_EXCEPTION = '0Z000'
|
||||
STACKED_DIAGNOSTICS_ACCESSED_WITHOUT_ACTIVE_HANDLER = '0Z002'
|
||||
|
||||
# Class 20 - Case Not Found
|
||||
CASE_NOT_FOUND = '20000'
|
||||
|
||||
|
@ -331,6 +336,7 @@ INSUFFICIENT_RESOURCES = '53000'
|
|||
DISK_FULL = '53100'
|
||||
OUT_OF_MEMORY = '53200'
|
||||
TOO_MANY_CONNECTIONS = '53300'
|
||||
CONFIGURATION_LIMIT_EXCEEDED = '53400'
|
||||
|
||||
# Class 54 - Program Limit Exceeded
|
||||
PROGRAM_LIMIT_EXCEEDED = '54000'
|
||||
|
@ -353,6 +359,7 @@ CANNOT_CONNECT_NOW = '57P03'
|
|||
DATABASE_DROPPED = '57P04'
|
||||
|
||||
# Class 58 - System Error (errors external to PostgreSQL itself)
|
||||
SYSTEM_ERROR = '58000'
|
||||
IO_ERROR = '58030'
|
||||
UNDEFINED_FILE = '58P01'
|
||||
DUPLICATE_FILE = '58P02'
|
||||
|
|
|
@ -30,7 +30,8 @@ def main():
|
|||
filename = sys.argv[1]
|
||||
|
||||
file_start = read_base_file(filename)
|
||||
classes, errors = fetch_errors(['8.1', '8.2', '8.3', '8.4', '9.0', '9.1'])
|
||||
classes, errors = fetch_errors(
|
||||
['8.1', '8.2', '8.3', '8.4', '9.0', '9.1', '9.2'])
|
||||
|
||||
f = open(filename, "w")
|
||||
for line in file_start:
|
||||
|
|
Loading…
Reference in New Issue
Block a user