@@ -232,6 +232,7 @@ impl SqlState {
232
232
Inner :: E57P02 => "57P02" ,
233
233
Inner :: E57P03 => "57P03" ,
234
234
Inner :: E57P04 => "57P04" ,
235
+ Inner :: E57P05 => "57P05" ,
235
236
Inner :: E58000 => "58000" ,
236
237
Inner :: E58030 => "58030" ,
237
238
Inner :: E58P01 => "58P01" ,
@@ -946,6 +947,9 @@ impl SqlState {
946
947
/// 57P04
947
948
pub const DATABASE_DROPPED : SqlState = SqlState ( Inner :: E57P04 ) ;
948
949
950
+ /// 57P05
951
+ pub const IDLE_SESSION_TIMEOUT : SqlState = SqlState ( Inner :: E57P05 ) ;
952
+
949
953
/// 58000
950
954
pub const SYSTEM_ERROR : SqlState = SqlState ( Inner :: E58000 ) ;
951
955
@@ -1292,6 +1296,7 @@ enum Inner {
1292
1296
E57P02 ,
1293
1297
E57P03 ,
1294
1298
E57P04 ,
1299
+ E57P05 ,
1295
1300
E58000 ,
1296
1301
E58030 ,
1297
1302
E58P01 ,
@@ -1498,6 +1503,7 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> =
1498
1503
( "55006" , SqlState :: OBJECT_IN_USE ) ,
1499
1504
( "42P01" , SqlState :: UNDEFINED_TABLE ) ,
1500
1505
( "25P03" , SqlState :: IDLE_IN_TRANSACTION_SESSION_TIMEOUT ) ,
1506
+ ( "57P05" , SqlState :: IDLE_SESSION_TIMEOUT ) ,
1501
1507
( "22037" , SqlState :: NON_UNIQUE_KEYS_IN_A_JSON_OBJECT ) ,
1502
1508
( "2203A" , SqlState :: SQL_JSON_MEMBER_NOT_FOUND ) ,
1503
1509
( "P0004" , SqlState :: ASSERT_FAILURE ) ,
0 commit comments