@@ -337,6 +337,10 @@ class DuplicateJsonObjectKeyValueError(DataError):
337337 sqlstate = '22030'
338338
339339
340+ class InvalidArgumentForSQLJsonDatetimeFunctionError (DataError ):
341+ sqlstate = '22031'
342+
343+
340344class InvalidJsonTextError (DataError ):
341345 sqlstate = '22032'
342346
@@ -872,6 +876,10 @@ class DatabaseDroppedError(OperatorInterventionError):
872876 sqlstate = '57P04'
873877
874878
879+ class IdleSessionTimeoutError (OperatorInterventionError ):
880+ sqlstate = '57P05'
881+
882+
875883class PostgresSystemError (_base .PostgresError ):
876884 sqlstate = '58000'
877885
@@ -1086,8 +1094,8 @@ class IndexCorruptedError(InternalServerError):
10861094 'ForeignKeyViolationError' , 'FunctionExecutedNoReturnStatementError' ,
10871095 'GeneratedAlwaysError' , 'GroupingError' ,
10881096 'HeldCursorRequiresSameIsolationLevelError' ,
1089- 'IdleInTransactionSessionTimeoutError' , 'ImplicitZeroBitPadding ' ,
1090- 'InFailedSQLTransactionError' ,
1097+ 'IdleInTransactionSessionTimeoutError' , 'IdleSessionTimeoutError ' ,
1098+ 'ImplicitZeroBitPadding' , ' InFailedSQLTransactionError' ,
10911099 'InappropriateAccessModeForBranchTransactionError' ,
10921100 'InappropriateIsolationLevelForBranchTransactionError' ,
10931101 'IndeterminateCollationError' , 'IndeterminateDatatypeError' ,
@@ -1098,6 +1106,7 @@ class IndexCorruptedError(InternalServerError):
10981106 'InvalidArgumentForNthValueFunctionError' ,
10991107 'InvalidArgumentForNtileFunctionError' ,
11001108 'InvalidArgumentForPowerFunctionError' ,
1109+ 'InvalidArgumentForSQLJsonDatetimeFunctionError' ,
11011110 'InvalidArgumentForWidthBucketFunctionError' ,
11021111 'InvalidAuthorizationSpecificationError' ,
11031112 'InvalidBinaryRepresentationError' , 'InvalidCachedStatementError' ,
0 commit comments