dify/api/core/rag/datasource/vdb
-LAN- 04954918a5
Merge commit from fork
* fix(oraclevector): SQL Injection

Signed-off-by: -LAN- <laipz8200@outlook.com>

* fix(oraclevector): Remove bind variables from FETCH FIRST clause

Oracle doesn't support bind variables in the FETCH FIRST clause.
Fixed by using validated integers directly in the SQL string while
maintaining proper input validation to prevent SQL injection.

- Updated search_by_vector method to use validated top_k directly
- Updated search_by_full_text method to use validated top_k directly
- Adjusted parameter numbering for document_ids_filter placeholders

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>

---------

Signed-off-by: -LAN- <laipz8200@outlook.com>
Co-authored-by: Claude <noreply@anthropic.com>
2025-08-26 13:51:23 +08:00
..
analyticdb fix: rollback when AnalyticDB create zhparser failed (#24260) 2025-08-21 15:00:26 +08:00
baidu make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
chroma make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
clickzetta refactor: replace try-except blocks with contextlib.suppress for cleaner exception handling (#24284) 2025-08-21 18:18:49 +08:00
couchbase make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
elasticsearch Fix version comparison with imported_version (#23326) 2025-08-04 10:40:49 +08:00
huawei make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
lindorm make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
matrixone feat: add support for Matrixone database (#20714) 2025-06-19 10:20:12 +08:00
milvus fix(vector): use semantic version comparison for version check (#24409) 2025-08-24 21:04:33 +08:00
myscale make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
oceanbase fix(vector): use semantic version comparison for version check (#24409) 2025-08-24 21:04:33 +08:00
opengauss Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
opensearch make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
oracle Merge commit from fork 2025-08-26 13:51:23 +08:00
pgvecto_rs make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
pgvector Revert "fix pg_vector extension requires SUPERUSER, but not availabl… (#24108) 2025-08-18 16:46:15 +08:00
pyvastbase Enhance Code Consistency Across Repository with `.editorconfig` (#19023) 2025-04-29 18:04:33 +08:00
qdrant fix: return empty list instead of raising exception for qdrant search when score_threshold is 1 (#24032) 2025-08-18 12:44:05 +08:00
relyt make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
tablestore chore: tablestore full text search support score normalization (#23255) 2025-08-01 14:14:11 +08:00
tencent Fix: Apply Metadata Filters Correctly in Full-Text Search Mode for Tencent Cloud Vector Database (#23564) 2025-08-07 05:36:06 -07:00
tidb_on_qdrant make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
tidb_vector make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
upstash Support knowledge metadata filter (#15982) 2025-03-18 16:42:19 +08:00
vikingdb Support knowledge metadata filter (#15982) 2025-03-18 16:42:19 +08:00
weaviate make logging not use f-str, change others to f-str (#22882) 2025-07-25 10:32:48 +08:00
__init__.py Feat/dify rag (#2528) 2024-02-22 23:31:57 +08:00
field.py add vdb document id index (#16244) 2025-03-20 01:38:15 +08:00
vector_base.py feat: mypy for all type check (#10921) 2024-12-24 18:38:51 +08:00
vector_factory.py feat: Add Clickzetta Lakehouse vector database integration (#22551) 2025-08-07 14:21:46 +08:00
vector_type.py feat: Add Clickzetta Lakehouse vector database integration (#22551) 2025-08-07 14:21:46 +08:00