Commit 1607eb8
GH-4289: Optimized
* Rewrote the method to use `org.springframework.jdbc.support.JdbcUtils#extractDatabaseMetaData`
for extracting database metadata from the `dataSource`, and obtain the database vendor name
from the JDBC driver, improving accuracy and robustness.
* Enhanced exception handling: instead of silently ignoring exceptions, it now explicitly reports
encountered issues, helping users identify problems and select the appropriate dialect more easily;
Fixes #4289
Signed-off-by: Sun Yuhan <[email protected]>JdbcChatMemoryRepositoryDialect#from
1 parent c8a75ab commit 1607eb8
File tree
1 file changed
+27
-23
lines changed- memory/repository/spring-ai-model-chat-memory-repository-jdbc/src/main/java/org/springframework/ai/chat/memory/repository/jdbc
1 file changed
+27
-23
lines changedLines changed: 27 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
23 | 28 | | |
24 | 29 | | |
25 | 30 | | |
26 | 31 | | |
27 | 32 | | |
| 33 | + | |
| 34 | + | |
28 | 35 | | |
29 | 36 | | |
30 | 37 | | |
| |||
51 | 58 | | |
52 | 59 | | |
53 | 60 | | |
54 | | - | |
| 61 | + | |
55 | 62 | | |
56 | 63 | | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
76 | 71 | | |
77 | | - | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
78 | 75 | | |
79 | | - | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
80 | 84 | | |
81 | 85 | | |
82 | 86 | | |
0 commit comments