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 false positive for Postgres 10+ #320

Closed
wants to merge 1 commit into from
Closed

Conversation

d
Copy link
Contributor

@d d commented Sep 13, 2018

We used to mistake 9.3.24 as a higher version than Postgres 10 and stop
matching it to the correct "port". This patch fixes that.

We used to mistake 9.3.24 as a higher version than Postgres 10 and stop
matching it to the correct "port". This patch fixes that.
@asfgit
Copy link

asfgit commented Sep 13, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/madlib-pr-build/678/

@@ -82,8 +82,7 @@ function(determine_target_versions OUT_VERSIONS)
set(VERSION "4.3ORCA")
endif()
elseif(${PORT_UC} STREQUAL "POSTGRESQL" AND
(${${PORT_UC}_VERSION_MAJOR} EQUAL 10 OR
${${PORT_UC}_VERSION_PATCH} GREATER 10))
Copy link
Contributor

Choose a reason for hiding this comment

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

The intention was to check for ...VERSION_MAJOR >= 10. Hence the two checks - there was, however a typo with the second version input as ...PATCH instead of ...MAJOR. The correction should be to replace the _PATCH with _MAJOR.

Copy link
Contributor

Choose a reason for hiding this comment

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

@d Do you mind if I merge this with the minor change (as described above)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oops now I understand why the GREATER check was there! Yeah go ahead!

@asfgit asfgit closed this in 3540a56 Sep 17, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants