feat: add execute_batch command for executing multiple SQL statements in a single call

This commit is contained in:
t8y2
2026-04-30 09:42:34 +08:00
parent 125793bd62
commit cd273441a3
5 changed files with 63 additions and 5 deletions
+1 -1
View File
@@ -212,7 +212,7 @@ pub async fn execute_query(conn: &OracleClient, sql: &str) -> Result<QueryResult
Err(e) => {
let msg = e.to_string();
if msg.contains("Server rejected") || msg.contains("closed the connection") {
Err("Operation failed — possibly a constraint violation (foreign key, unique, or check constraint).".to_string())
Err("Operation failed (connection closed) — possibly a constraint violation (foreign key, unique, or check constraint).".to_string())
} else {
Err(msg)
}