Re: Underscore in positional parameters?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Underscore in positional parameters?
Дата
Msg-id 883585f9-e75c-440a-8b67-6ff31b1e993a@eisentraut.org
обсуждение исходный текст
Ответ на Re: Underscore in positional parameters?  (Erik Wienhold <ewie@ewie.name>)
Ответы Re: Underscore in positional parameters?
Список pgsql-hackers
On 14.05.24 18:07, Erik Wienhold wrote:
> Patch 0001 changes rules param and param_junk to only accept digits 0-9.

I have committed this patch to PG16 and master.

I was a little bit on the fence about what the behavior should be, but I 
checked Perl for comparison:

print 1000;   # ok
print 1_000;  # ok
print $1000;  # ok
print $1_000; # error

So this seems alright.

> Patch 0002 replaces atol with pg_strtoint32_safe in the backend parser
> and strtoint in ECPG.  This fixes overflows like:

Seems like a good idea, but as was said, this is an older issue, so 
let's look at that separately.




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