mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
Fix brown paper bag bug in 5c47c6546c413d5eb51c1626070a807026e6139d.
The previous logic failed to work for anything other than the first segment of a relation. Report by Jakub Wartak. Patch by me. Discussion: http://postgr.es/m/CAKZiRmwd3KTNMQhm9Bv4oR_1uMehXroO6kGyJQkiw9DfM8cMwQ@mail.gmail.com
This commit is contained in:
parent
7e1ce2b3de
commit
47f01d727e
@ -431,7 +431,7 @@ parse_filename_for_nontemp_relation(const char *name, RelFileNumber *relnumber,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Reject leading zeroes, just like we do for RelFileNumber. */
|
/* Reject leading zeroes, just like we do for RelFileNumber. */
|
||||||
if (name[0] < '1' || name[0] > '9')
|
if (name[1] < '1' || name[1] > '9')
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
errno = 0;
|
errno = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user