Support JSON unicode characters in SQL

This commit is contained in:
Tobie Morgan Hitchcock 2018-08-20 07:12:32 +01:00
parent 31ad063ef4
commit 05d4d97707

View file

@ -947,7 +947,7 @@ func (s *scanner) scanObject(chp ...rune) (tok Token, lit string, val interface{
switch chn := s.next(); chn { switch chn := s.next(); chn {
default: default:
return ILLEGAL, buf.String(), val return ILLEGAL, buf.String(), val
case 'b', 't', 'r', 'n', 'f', '"', '\\': case 'b', 't', 'r', 'n', 'f', 'u', '"', '\\':
buf.WriteRune(ch) buf.WriteRune(ch)
buf.WriteRune(chn) buf.WriteRune(chn)
} }