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

ISPN-14278 fix erros in the SQL store examples #10434

Merged
merged 2 commits into from Nov 15, 2022

Conversation

domiborges
Copy link
Member

https://issues.redhat.com/browse/ISPN-14278
Updates examples in the sql store docs
Based on feedback from @gustavolira

@domiborges domiborges added the Documentation Pull request containing only documentation changes label Nov 4, 2022
Copy link
Member

@wburns wburns left a comment

Choose a reason for hiding this comment

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

LGTM, just a comment about DB specific changes.

@@ -1,6 +1,6 @@
CREATE TABLE Person (
name VARCHAR(255) NOT NULL,
picture VARBINARY(255),
picture BYTEA,
Copy link
Member

Choose a reason for hiding this comment

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

This isn't that simple. Unfortunately, it depends upon the DB that is being used. VARBINARY(255) is more popular than BYTEA as that is only Postgres. I am not sure which DB you are trying to tailor the docs to.

https://github.com/infinispan/infinispan/blob/main/persistence/sql/src/test/java/org/infinispan/persistence/sql/AbstractSQLStoreFunctionalTest.java#L393-L401

Copy link
Member Author

Choose a reason for hiding this comment

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

I see! I added a note that it's valid only for PostgreSQL

@wburns wburns merged commit 48986d3 into infinispan:main Nov 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Pull request containing only documentation changes
Projects
None yet
2 participants