Fix compiler warning on MSVC

David Rowley <drowley@postgresql.org>

Commit: 1613de8bc34b4977d0186b56ef5a00ef8058a74a
Author: David Rowley <drowley@postgresql.org>
Date: 2022-11-07T21:54:04Z
Releases: 16.0
Fix compiler warning on MSVC

MSVC does not understand that ereport(ERROR) does not return, so just
return the first enum PartitionStrategy value to keep the compiler from
complaining about the missing return.

Discussion: https://postgr.es/m/20221104161934.GB16921@telsasoft.com

Files

PathChange+/−
src/backend/parser/gram.y modified +3 −0

Discussion

Cited messages not in the archive: 20221104161934.GB16921@telsasoft.com