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

Functions: fixing S4 ORM #10596

Merged
merged 4 commits into from
Sep 12, 2023
Merged

Functions: fixing S4 ORM #10596

merged 4 commits into from
Sep 12, 2023

Conversation

pinebit
Copy link
Contributor

@pinebit pinebit commented Sep 12, 2023

No description provided.

@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

@github-actions
Copy link
Contributor

@github-actions
Copy link
Contributor

@@ -0,0 +1,7 @@
-- +goose Up
Copy link
Contributor

Choose a reason for hiding this comment

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

Use "s4" in the file name instead of "functions".

@@ -71,7 +71,7 @@ RETURNING id;`, o.tableName)
if errors.Is(err, sql.ErrNoRows) {
return ErrVersionTooLow
}
return nil
return err
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible to trigger as error here in a test? It looks like it should never happen now...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will be hard to trigger, e.g. close DB connection..

@@ -0,0 +1,7 @@
-- +goose Up

ALTER TABLE "s4".shared ALTER COLUMN version TYPE BIGINT;
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you add (or modify) a test to actually save a version larger than INT?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Added.

@github-actions
Copy link
Contributor

@pinebit pinebit requested a review from bolekk September 12, 2023 09:17
@github-actions
Copy link
Contributor

@cl-sonarqube-production
Copy link

@pinebit pinebit added this pull request to the merge queue Sep 12, 2023
Merged via the queue into develop with commit 079f749 Sep 12, 2023
118 checks passed
@pinebit pinebit deleted the functions/fixing-s4-orm branch September 12, 2023 13:50
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.

3 participants