postgresql/src/fe_utils
Tom Lane 2fd3e2fa5c Fix accidentally-harmless thinko in psqlscan_test_variable().
This code was passing literal strings to psqlscan_emit,
which is quite contrary to that function's specification:
"If you pass it something that is not part of the yytext
string, you are making a mistake".  It accidentally worked
anyway, even in non-safe_encoding mode.  psqlscan_emit
would compute a garbage "reference" pointer, but would
never dereference that since the passed string is all-ASCII.
So there's no live bug today, but that is a happenstance
outcome of psqlscan_emit's current implementation.

Let's make psqlscan_test_variable do what it's supposed to,
namely append directly to the output buffer.  This is just
future-proofing against possible changes in psqlscan_emit,
so I don't feel a need to back-patch.
2025-03-31 12:16:32 -04:00
..
.gitignore Move psql's psqlscan.l into src/fe_utils. 2016-03-24 20:28:47 -04:00
archive.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
astreamer_file.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
astreamer_gzip.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
astreamer_lz4.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
astreamer_tar.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
astreamer_zstd.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
cancel.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
conditional.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
connect_utils.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
Makefile Drop warning-free support for Flex 2.5.35 2025-01-15 15:35:08 +01:00
mbprint.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
meson.build Drop warning-free support for Flex 2.5.35 2025-01-15 15:35:08 +01:00
option_utils.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
parallel_slot.c Fix grammatical typos around possessive "its" 2025-01-29 14:39:14 +07:00
print.c Use PRI?64 instead of "ll?" in format strings (continued). 2025-03-29 10:43:57 +01:00
psqlscan.l Fix accidentally-harmless thinko in psqlscan_test_variable(). 2025-03-31 12:16:32 -04:00
query_utils.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
recovery_gen.c pg_rewind: Add dbname to primary_conninfo when using --write-recovery-conf. 2025-03-12 16:56:04 -07:00
simple_list.c Update copyright for 2025 2025-01-01 11:21:55 -05:00
string_utils.c In fmtIdEnc(), handle failure of enlargePQExpBuffer(). 2025-02-16 12:46:35 -05:00