Fix compiler warning on MSVC
authorDavid Rowley <drowley@postgresql.org>
Mon, 7 Nov 2022 21:54:04 +0000 (10:54 +1300)
committerDavid Rowley <drowley@postgresql.org>
Mon, 7 Nov 2022 21:54:04 +0000 (10:54 +1300)
commit1613de8bc34b4977d0186b56ef5a00ef8058a74a
treef3d863e48a2fec1035e55975e74a87bb266a058b
parent0e758ae89a20f233bb1c20a0f52ac7c81b2ef1b8
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
src/backend/parser/gram.y