byteain for new hex escaped data

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема byteain for new hex escaped data
Дата
Msg-id alpine.BSO.2.00.0911180644080.8510@leary.csoft.net
обсуждение исходный текст
Ответы Re: byteain for new hex escaped data
Список pgsql-hackers
Looking at how byteain detects whether the input it is passed is the new 
hex format escape or the old octal escape, it uses:
        char       *inputText = PG_GETARG_CSTRING(0);        if (inputText[0] == '\\' && inputText[1] == 'x')

Doesn't this read off the end of inputText in the case of "SELECT 
''::bytea", or is there some padding happening somewhere that makes this 
legal?

Kris Jurka



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

Предыдущее
От: Pavel Stehule
Дата:
Сообщение: Re: RFC for adding typmods to functions
Следующее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Summary and Plan for Hot Standby