NULL need to be detected in COPY

This commit is contained in:
Jovansonlee Cesar 2018-09-30 04:19:15 +08:00
parent 5abd9e7dec
commit ba8a9bd48f
3 changed files with 8 additions and 1 deletions

View file

@ -656,6 +656,10 @@ impl Parser {
Token::Backslash => {
if let Ok(true) = self.consume_token(&Token::Period) {
return Ok(values);
}if let Some(token) = self.next_token(){
if token == Token::Identifier("N".to_string()){
values.push(Value::Null);
}
}else{
continue;
}