Get out of the way of the where keyword

Closes #52
This commit is contained in:
Steven Fackler 2014-08-17 00:42:02 -07:00
parent 3b8ac2cdd7
commit d0c1d71529

View File

@ -448,7 +448,7 @@ pub struct PostgresDbError {
/// this includes a call stack traceback of active procedural language
/// functions and internally-generated queries. The trace is one entry per
/// line, most recent first.
pub where: Option<String>,
pub where_: Option<String>,
/// If the error was associated with a specific database object, the name
/// of the schema containing that object, if any. (PostgreSQL 9.3+)
pub schema: Option<String>,
@ -498,7 +498,7 @@ impl PostgresDbError {
None => None
}
},
where: map.pop(&('W' as u8)),
where_: map.pop(&('W' as u8)),
schema: map.pop(&('s' as u8)),
table: map.pop(&('t' as u8)),
column: map.pop(&('c' as u8)),