| From: | Peter Eisentraut <peter(dot)eisentraut(at)enterprisedb(dot)com> |
|---|---|
| To: | Dean Rasheed <dean(dot)a(dot)rasheed(at)gmail(dot)com> |
| Cc: | John Naylor <john(dot)naylor(at)enterprisedb(dot)com>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
| Subject: | Re: Non-decimal integer literals |
| Date: | 2022-11-28 13:59:52 |
| Message-ID: | 164fea20-dae9-d0fb-9917-772cd0068d29@enterprisedb.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
On 23.11.22 17:25, Dean Rasheed wrote:
> Taking a quick look, I noticed that there are no tests for negative
> values handled in the parser.
>
> Giving that a spin shows that make_const() fails to correctly identify
> the base of negative non-decimal integers in the T_Float case, causing
> it to fall through to numeric_in() and fail:
Fixed in new patch.
| Attachment | Content-Type | Size |
|---|---|---|
| v11-0001-Non-decimal-integer-literals.patch | text/plain | 41.2 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Peter Eisentraut | 2022-11-28 14:05:54 | Re: Transparent column encryption |
| Previous Message | Daniel Gustafsson | 2022-11-28 13:13:16 | Re: TAP output format in pg_regress |