@@ -232,6 +232,7 @@ impl SqlState {
232232 Inner :: E57P02 => "57P02" ,
233233 Inner :: E57P03 => "57P03" ,
234234 Inner :: E57P04 => "57P04" ,
235+ Inner :: E57P05 => "57P05" ,
235236 Inner :: E58000 => "58000" ,
236237 Inner :: E58030 => "58030" ,
237238 Inner :: E58P01 => "58P01" ,
@@ -946,6 +947,9 @@ impl SqlState {
946947 /// 57P04
947948 pub const DATABASE_DROPPED : SqlState = SqlState ( Inner :: E57P04 ) ;
948949
950+ /// 57P05
951+ pub const IDLE_SESSION_TIMEOUT : SqlState = SqlState ( Inner :: E57P05 ) ;
952+
949953 /// 58000
950954 pub const SYSTEM_ERROR : SqlState = SqlState ( Inner :: E58000 ) ;
951955
@@ -1292,6 +1296,7 @@ enum Inner {
12921296 E57P02 ,
12931297 E57P03 ,
12941298 E57P04 ,
1299+ E57P05 ,
12951300 E58000 ,
12961301 E58030 ,
12971302 E58P01 ,
@@ -1498,6 +1503,7 @@ static SQLSTATE_MAP: phf::Map<&'static str, SqlState> =
14981503 ( "55006" , SqlState :: OBJECT_IN_USE ) ,
14991504 ( "42P01" , SqlState :: UNDEFINED_TABLE ) ,
15001505 ( "25P03" , SqlState :: IDLE_IN_TRANSACTION_SESSION_TIMEOUT ) ,
1506+ ( "57P05" , SqlState :: IDLE_SESSION_TIMEOUT ) ,
15011507 ( "22037" , SqlState :: NON_UNIQUE_KEYS_IN_A_JSON_OBJECT ) ,
15021508 ( "2203A" , SqlState :: SQL_JSON_MEMBER_NOT_FOUND ) ,
15031509 ( "P0004" , SqlState :: ASSERT_FAILURE ) ,
0 commit comments