Commit 388e75a
committed
Replace run-time error check with assertion
The error message was checking that the structures returned from the
parser matched expectations. That's something we usually use
assertions for, not a full user-facing error message. So replace that
with an assertion (hidden inside lfirst_node()).
Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://www.postgresql.org/message-id/flat/452e9df8-ec89-e01b-b64a-8cc6ce830458%40enterprisedb.com1 parent 2941138 commit 388e75a
1 file changed
+5
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
| 223 | + | |
239 | 224 | | |
240 | 225 | | |
241 | 226 | | |
242 | 227 | | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
243 | 231 | | |
244 | 232 | | |
245 | 233 | | |
| |||
273 | 261 | | |
274 | 262 | | |
275 | 263 | | |
| 264 | + | |
276 | 265 | | |
277 | 266 | | |
278 | 267 | | |
| |||
0 commit comments