Bug description
In the JdbcChatMemoryRepositoryDialect#from
method, exceptions during JDBC connection establishment are ignored, which may lead to returning PostgresChatMemoryRepositoryDialect
by default when the connection fails, potentially confusing users. Additionally, determining the database vendor solely by checking if the URL contains certain substrings is not accurate.
https://github.com/spring-projects/spring-ai/blob/1dd686b3e9e767d09da350505af86578ba70de88/memory/repository/spring-ai-model-chat-memory-repository-jdbc/src/main/java/org/springframework/ai/chat/memory/repository/jdbc/JdbcChatMemoryRepositoryDialect.java#L56-L80