@@ -337,6 +337,10 @@ class DuplicateJsonObjectKeyValueError(DataError):
337
337
sqlstate = '22030'
338
338
339
339
340
+ class InvalidArgumentForSQLJsonDatetimeFunctionError (DataError ):
341
+ sqlstate = '22031'
342
+
343
+
340
344
class InvalidJsonTextError (DataError ):
341
345
sqlstate = '22032'
342
346
@@ -872,6 +876,10 @@ class DatabaseDroppedError(OperatorInterventionError):
872
876
sqlstate = '57P04'
873
877
874
878
879
+ class IdleSessionTimeoutError (OperatorInterventionError ):
880
+ sqlstate = '57P05'
881
+
882
+
875
883
class PostgresSystemError (_base .PostgresError ):
876
884
sqlstate = '58000'
877
885
@@ -1086,8 +1094,8 @@ class IndexCorruptedError(InternalServerError):
1086
1094
'ForeignKeyViolationError' , 'FunctionExecutedNoReturnStatementError' ,
1087
1095
'GeneratedAlwaysError' , 'GroupingError' ,
1088
1096
'HeldCursorRequiresSameIsolationLevelError' ,
1089
- 'IdleInTransactionSessionTimeoutError' , 'ImplicitZeroBitPadding ' ,
1090
- 'InFailedSQLTransactionError' ,
1097
+ 'IdleInTransactionSessionTimeoutError' , 'IdleSessionTimeoutError ' ,
1098
+ 'ImplicitZeroBitPadding' , ' InFailedSQLTransactionError' ,
1091
1099
'InappropriateAccessModeForBranchTransactionError' ,
1092
1100
'InappropriateIsolationLevelForBranchTransactionError' ,
1093
1101
'IndeterminateCollationError' , 'IndeterminateDatatypeError' ,
@@ -1098,6 +1106,7 @@ class IndexCorruptedError(InternalServerError):
1098
1106
'InvalidArgumentForNthValueFunctionError' ,
1099
1107
'InvalidArgumentForNtileFunctionError' ,
1100
1108
'InvalidArgumentForPowerFunctionError' ,
1109
+ 'InvalidArgumentForSQLJsonDatetimeFunctionError' ,
1101
1110
'InvalidArgumentForWidthBucketFunctionError' ,
1102
1111
'InvalidAuthorizationSpecificationError' ,
1103
1112
'InvalidBinaryRepresentationError' , 'InvalidCachedStatementError' ,
0 commit comments