Avoid code duplication in \crosstabview.
Tom Lane <tgl@sss.pgh.pa.us>
Avoid code duplication in \crosstabview. In commit 6f0d6a507 I added a duplicate copy of psqlscanslash's identifier downcasing code, but actually it's not hard to split that out as a callable subroutine and avoid the duplication.
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/crosstabview.c | modified | +3 −27 |
| src/bin/psql/psqlscanslash.h | modified | +2 −0 |
| src/bin/psql/psqlscanslash.l | modified | +51 −33 |