Re: Refactor query normalization into core query jumbling

Поиск
Список
Период
Сортировка
От zengman
Тема Re: Refactor query normalization into core query jumbling
Дата
Msg-id tencent_2FF1F5A9360E2DD24C6478FB@qq.com
обсуждение исходный текст
Ответ на Re: Refactor query normalization into core query jumbling  (Sami Imseih <samimseih@gmail.com>)
Ответы Re: Refactor query normalization into core query jumbling
Список pgsql-hackers
Hi,

Though this may be tangential to the current topic, I have long been wanting to revise the two instances of
`Assert(len_to_wrt>= 0);`
 
in the code to the implementation below. Would you kindly advise if this modification is worthwhile?

```
    if (len_to_wrt > 0)
    {
        memcpy(norm_query + n_quer_loc, query + quer_loc, len_to_wrt);
        n_quer_loc += len_to_wrt;
    }
```

--
Regards,
Man Zeng
www.openhalo.org

В списке pgsql-hackers по дате отправления: