Skip to content

Fix "invalid command \n" in 53... test#77

Open
ivan-v-kush wants to merge 1 commit into
enova:masterfrom
ivan-v-kush:fix-invalid-n
Open

Fix "invalid command \n" in 53... test#77
ivan-v-kush wants to merge 1 commit into
enova:masterfrom
ivan-v-kush:fix-invalid-n

Conversation

@ivan-v-kush

@ivan-v-kush ivan-v-kush commented Jul 7, 2024

Copy link
Copy Markdown

It seems there is a different behaviour of function system in different glibc versions. This function executes (see do_shell in src/bin/psql/command.c)

echo "BEGIN; SELECT * FROM public.foo;\n\! sleep 15"

in test command

\! echo "BEGIN; SELECT * FROM public.foo;\n\! sleep 15"

Some of them skip/remove \n. Others leave \n and we get an error (see exec_command in src/bin/psql/command.c)

invalid command \n

@ivan-v-kush ivan-v-kush changed the title fix invalid n Fix "invalid command \n" in 53... test Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant