diff --git a/libdasc/parse/parse.go b/libdasc/parse/parse.go index 27a87791..7d6a436b 100644 --- a/libdasc/parse/parse.go +++ b/libdasc/parse/parse.go @@ -227,7 +227,8 @@ func unquote(token Item) (string, error) { case ItemBare: return token.Val, nil case ItemSingleQuoted: - return token.Val[1:len(token.Val)-1], nil + return strings.Replace(token.Val[1:len(token.Val)-1], "''", "'", -1), + nil case ItemDoubleQuoted: return strconv.Unquote(token.Val) default: