@@ -6,7 +6,7 @@ use std::io::{Write, BufWriter};
6
6
use std:: path:: Path ;
7
7
use std:: convert:: AsRef ;
8
8
9
- // From http://www.postgresql.org/docs/9.2 /static/errcodes-appendix.html
9
+ // From http://www.postgresql.org/docs/9.5 /static/errcodes-appendix.html
10
10
const SQLSTATES : & ' static [ ( & ' static str , & ' static str ) ] = & [
11
11
// Class 00 — Successful Completion
12
12
( "00000" , "SuccessfulCompletion" ) ,
@@ -93,6 +93,8 @@ const SQLSTATES: &'static [(&'static str, &'static str)] = &[
93
93
( "2201B" , "InvalidRegularExpression" ) ,
94
94
( "2201W" , "InvalidRowCountInLimitClause" ) ,
95
95
( "2201X" , "InvalidRowCountInResultOffsetClause" ) ,
96
+ ( "2202H" , "InvalidTablesampleArgument" ) ,
97
+ ( "2202G" , "InavlidTablesampleRepeat" ) ,
96
98
( "22009" , "InvalidTimeZoneDisplacementValue" ) ,
97
99
( "2200C" , "InvalidUseOfEscapeCharacter" ) ,
98
100
( "2200G" , "MostSpecificTypeMismatch" ) ,
@@ -181,6 +183,7 @@ const SQLSTATES: &'static [(&'static str, &'static str)] = &[
181
183
( "39004" , "NullValueNotAllowedExternalRoutine" ) ,
182
184
( "39P01" , "TriggerProtocolViolated" ) ,
183
185
( "39P02" , "SrfProtocolViolated" ) ,
186
+ ( "39P03" , "EventTriggerProtocolViolated" ) ,
184
187
185
188
// Class 3B — Savepoint Exception
186
189
( "3B000" , "SavepointException" ) ,
@@ -318,6 +321,7 @@ const SQLSTATES: &'static [(&'static str, &'static str)] = &[
318
321
( "P0001" , "RaiseException" ) ,
319
322
( "P0002" , "NoDataFound" ) ,
320
323
( "P0003" , "TooManyRows" ) ,
324
+ ( "P0004" , "AssertFailure" ) ,
321
325
322
326
// Class XX — Internal Error
323
327
( "XX000" , "InternalError" ) ,
0 commit comments