Skip to content

Commit d0c1d71

Browse files
committed
Get out of the way of the where keyword
Closes rust-postgres#52
1 parent 3b8ac2c commit d0c1d71

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/error.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ pub struct PostgresDbError {
448448
/// this includes a call stack traceback of active procedural language
449449
/// functions and internally-generated queries. The trace is one entry per
450450
/// line, most recent first.
451-
pub where: Option<String>,
451+
pub where_: Option<String>,
452452
/// If the error was associated with a specific database object, the name
453453
/// of the schema containing that object, if any. (PostgreSQL 9.3+)
454454
pub schema: Option<String>,
@@ -498,7 +498,7 @@ impl PostgresDbError {
498498
None => None
499499
}
500500
},
501-
where: map.pop(&('W' as u8)),
501+
where_: map.pop(&('W' as u8)),
502502
schema: map.pop(&('s' as u8)),
503503
table: map.pop(&('t' as u8)),
504504
column: map.pop(&('c' as u8)),

0 commit comments

Comments
 (0)