Skip to content

Conversation

@fanxt0218
Copy link
Contributor

add the support for oracle

@ilayaperumalg
Copy link
Member

@fanxt0218 Thanks for the PR! Could you add the schema and the corresponding integration test?

@fanxt0218
Copy link
Contributor Author

感谢 PR!您能否添加架构和相应的集成测试?

Ok, I've added oracle's schema and integration test classes and made it a new commit. Please review
In my environment, it passed all the test cases

@fanxt0218

This comment was marked as outdated.

@fanxt0218

This comment was marked as outdated.

@ilayaperumalg ilayaperumalg self-assigned this Jul 2, 2025
@ilayaperumalg ilayaperumalg added this to the 1.1.x milestone Jul 2, 2025
@ilayaperumalg
Copy link
Member

@fanxt0218 Thanks for the heads up!

@psilberk
Copy link
Contributor

Hi @fanxt0218 would you like to invite me as contributor to update this PR with some minor updates and specific stuff from Oracle (Im an Oracle employee)

@fanxt0218
Copy link
Contributor Author

fanxt0218 commented Oct 24, 2025

Hi @fanxt0218 would you like to invite me as contributor to update this PR with some minor updates and specific stuff from Oracle (Im an Oracle employee)

Of course@psilberk! Please check the invitation message. In the fan branch of this PR's forked repository.

@psilberk
Copy link
Contributor

Can you update the branch with the latest changes and resolve its conflicts? (I don't think I can do it).

@fanxt0218
Copy link
Contributor Author

Can you update the branch with the latest changes and resolve its conflicts? (I don't think I can do it).

I have resolved the conflicts and merged the latest code.

*/

@SpringBootTest
@TestPropertySource(properties = { "spring.datasource.url=jdbc:oracle:thin:@localhost:1521/FREEPDB1",
Copy link
Member

Choose a reason for hiding this comment

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

Need to use test containers for the test. Will fix when merging.

</dependency>

<!-- Oracle JDBC Driver -->
<dependency>
Copy link
Member

Choose a reason for hiding this comment

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

Since we prefer to use the test containers this dependency isn't required. Will remove when merging.

Copy link
Member

Choose a reason for hiding this comment

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

Meant to post it for the test container dependency not the JDBC driver one. Will keep this in.

</dependency>

<!-- Testcontainers for Oracle -->
<dependency>
Copy link
Member

Choose a reason for hiding this comment

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

Ran into issues when dropping table using this test container. Switched to use the latest testcontainers-oracle-free which works fine. Will update when merging.

@@ -0,0 +1,21 @@
DROP TABLE SPRING_AI_CHAT_MEMORY;
Copy link
Member

Choose a reason for hiding this comment

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

Need to use DROP TABLE IF EXISTS SPRING_AI_CHAT_MEMORY

@ilayaperumalg
Copy link
Member

Cherry-picked the commits, addressed the review comments, rebased and merged as 30af4e8.

Thank you @fanxt0218 and @psilberk for your collaboration towards this PR!

@psilberk
Copy link
Contributor

Hi @ilayaperumalg did we change the right .adoc?
This page https://docs.spring.io/spring-ai/reference/api/chat-memory.html is not reflecting the changes.

@ilayaperumalg
Copy link
Member

@psilberk We did. The changes are updated in the 1.1.0-SNAPSHOT here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants