Re: byteain bug(?)
От | Joe Conway |
---|---|
Тема | Re: byteain bug(?) |
Дата | |
Msg-id | 022401c13754$d4065590$0705a8c0@jecw2k1 обсуждение исходный текст |
Ответ на | Re: byteain bug(?) (Bruce Momjian <pgman@candle.pha.pa.us>) |
Ответы |
Re: byteain bug(?)
|
Список | pgsql-hackers |
> > Should be fixed. I noticed this myself. Should we require three digits? > > > > I just noticed some unexpected behavior from byteain: > > > > > > test=# select '\\009'::bytea; > > ?column? > > ---------- > > \011 > > (1 row) <snip> > > > > It checks for a '\' followed by three digits, but does not attempt to > > enforce that the three digits actually produce a valid octal number. Anyone > > object to me fixing this? > > Based on the thread this morning on patches, I was thinking we should allow '\\', '\0', or '\###' where ### is any valid octal. At least that's what I was going to have decode(bytea, 'escape') handle. -- Joe
В списке pgsql-hackers по дате отправления: