Skip to content
Snippets Groups Projects
Commit e2ded829 authored by Neil Conway's avatar Neil Conway
Browse files

Revise int2/int4/int8/float4/float8 input routines to allow for

any amount of leading or trailing whitespace (where "whitespace"
is defined by isspace()). This is for SQL conformance, as well
as consistency with other numeric types (e.g. oid, numeric).

Also refactor pg_atoi() to avoid looking at errno where not
necessary, and add a bunch of regression tests for the input
to these types.
parent 0b86ade1
No related branches found
No related tags found
No related merge requests found
Showing
with 457 additions and 138 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment