From 05d4d97707f4727e1a9e16fa3fedddc51f95b07a Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 20 Aug 2018 07:12:32 +0100 Subject: [PATCH] Support JSON unicode characters in SQL --- sql/scanner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/scanner.go b/sql/scanner.go index f5d984cf..83827591 100644 --- a/sql/scanner.go +++ b/sql/scanner.go @@ -947,7 +947,7 @@ func (s *scanner) scanObject(chp ...rune) (tok Token, lit string, val interface{ switch chn := s.next(); chn { default: return ILLEGAL, buf.String(), val - case 'b', 't', 'r', 'n', 'f', '"', '\\': + case 'b', 't', 'r', 'n', 'f', 'u', '"', '\\': buf.WriteRune(ch) buf.WriteRune(chn) }