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

postgresql: fix get_version() for older PostgreSQL versions #511

Merged
merged 1 commit into from
Mar 20, 2024

Conversation

r-c-n
Copy link
Collaborator

@r-c-n r-c-n commented Mar 20, 2024

The bare 'RETURN' statement in get_version() is caught as a syntax error by PostgreSQL 12.x. Return the integer literal using a simple SQL statement instead.

NOTE: Not tested with other PostgreSQL versions.

The bare 'RETURN' statement in get_version() is caught as a syntax error
by PostgreSQL 12.x. Return the integer literal using a simple SQL
statement instead.
Copy link
Collaborator

@spbnick spbnick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you, Ricardo!

@spbnick spbnick merged commit 8924575 into kernelci:main Mar 20, 2024
4 of 5 checks passed
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.

2 participants