Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ivan-v-kush
Copy link

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

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