Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Fix broken build on develop branch #85

Closed
wants to merge 1 commit into from
Closed

Conversation

JamesGuthrie
Copy link
Member

I missed the fact that this breaks the build :/

@bitwalker
Copy link
Contributor

@JamesGuthrie Hmm, the build was passing on my branch before it was merged, is it due to a combination with other changes? If you have a link to the error I can take a closer look

@JamesGuthrie
Copy link
Member Author

Ya, I rebased it against (and merged it into) develop, and the tests fail now because the GapFillDelta type is missing.

@bitwalker
Copy link
Contributor

Ah, right, forgot we have some SQL tests that depend on the generated SQL. A better fix might be this:

#[cfg_attr(not(test), pgx(sql = false))]

This will only elide the generated SQL when compiling for release/debug builds, but not tests. We can also set our own cfg flag in build.rs to specifically allow us to enable/disable the elision. Probably worth sorting that out rather than removing the attribute, since we'll need a solution for tests one way or the other.

@JamesGuthrie
Copy link
Member Author

I'm not sure that that fix is the right solution either. With that the tests would pass, but the extension would be broken when built and released. We need to move this generated non-idempotent into a migration script. I have some changes in the sql migration branch which work towards that. I will continue with that there.

`#[pgx(sql = false)]` suppresses SQL generation for this object, so the
generated SQL is incomplete. We will use this SQL-suppression, but it's
missing some pieces which still need to be developed.
@JamesGuthrie
Copy link
Member Author

This won't build without the 0.3.1 bump. Closing in place of #84.

@JamesGuthrie JamesGuthrie deleted the jg/fix-develop branch February 14, 2022 08:56
@JamesGuthrie JamesGuthrie mentioned this pull request Feb 15, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants