Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?

Поиск
Список
Период
Сортировка
От Chris Angelico
Тема Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?
Дата
Msg-id CAPTjJmp1vmU=CQye24QfEFJRv3kJVnmu4iMRbxsEdMXDyeqHNQ@mail.gmail.com
обсуждение исходный текст
Ответ на Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?  (Ondrej Ivanič <ondrej.ivanic@gmail.com>)
Список pgsql-general
On Mon, Nov 5, 2012 at 8:48 AM, Ondrej Ivanič <ondrej.ivanic@gmail.com> wrote:
> On 5 November 2012 08:39, Chris Angelico <rosuav@gmail.com> wrote:
>> Point of random curiosity: The commit mentioned adds the following line:
>>
>> if (rinfo->reloptions && strlen(rinfo->reloptions) > 0)
>>
>> Is there a reason this isn't done as:
>>
>> if (rinfo->reloptions && *rinfo->reloptions)
>>
>> ? It seems like overkill to ascertain the string length just to find
>> out if the first character is the null terminator.
>
> My guess is to be multibyte encoding safe: UTF-16 or similar.

Oh, is your strlen function not the default C strlen, then? I'd best
not look at out-of-context patches then, heh :)

ChrisA


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

Предыдущее
От: Nyamul Hassan
Дата:
Сообщение: Recover from failed files
Следующее
От: Tom Lane
Дата:
Сообщение: Re: alter view foo set () -- fixed in 9.2 stable, but when will it be released?