fix #565: read ORDS vector body stream once
This commit is contained in:
@@ -126,6 +126,19 @@ class GuidedFlowTemplateTest {
|
||||
.contains("검색 기술 상세 보기");
|
||||
}
|
||||
|
||||
@Test
|
||||
void vectorOrdsHandlerReadsBodyStreamOnlyOnce() throws IOException {
|
||||
String sql = Files.readString(Path.of("sql/adb/29_agent_ords_vector_search_ords.sql"));
|
||||
|
||||
assertThat(sql)
|
||||
.contains("v_body_text CLOB")
|
||||
.contains("v_body_text := :body_text")
|
||||
.contains("Duplicate stream parameter")
|
||||
.doesNotContain("JSON_QUERY(\n :body_text")
|
||||
.doesNotContain("JSON_VALUE(\n :body_text");
|
||||
assertThat(sql.split("v_body_text := :body_text", -1)).hasSize(2);
|
||||
}
|
||||
|
||||
private String template(String relativePath) throws IOException {
|
||||
return Files.readString(Path.of("src/main/resources/templates").resolve(relativePath));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user