git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: add673b) | patch
Allow noise semicolons ending psql \sf, \ef, \sv, \ev commands.
2024年1月10日 19:20:09 +0000 (14:20 -0500)
2024年1月10日 19:20:09 +0000 (14:20 -0500)
commit 390298f0806588ceb131dd47760208bd2cd6298f
Allow noise semicolons ending psql \sf, \ef, \sv, \ev commands.

Many psql backslash commands tolerate trailing semicolons, even
though that's not part of the official syntax. These did not.
They tried to, by passing semicolon = true to psql_scan_slash_option,
but that function ignored this parameter in OT_WHOLE_LINE mode.
Teach it to do the right thing, and remove the now-duplicative
logic in exec_command_help.

Discussion: https://postgr.es/m/2012251.1704746912@sss.pgh.pa.us
src/bin/psql/command.c diff | blob | blame | history
src/bin/psql/psqlscanslash.l diff | blob | blame | history
src/test/regress/expected/psql.out diff | blob | blame | history
src/test/regress/sql/psql.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /