better error dropping

This commit is contained in:
2026-03-16 19:39:24 -04:00
parent 507dc6d780
commit d8fc286e94
6 changed files with 51 additions and 11 deletions

View File

@ -25,6 +25,7 @@ impl DatabaseExecutor for SpiExecutor {
}
Spi::connect(|client| {
pgrx::notice!("JSPG_SQL: {}", sql);
match client.select(sql, Some(args_with_oid.len() as i64), &args_with_oid) {
Ok(tup_table) => {
let mut results = Vec::new();
@ -53,6 +54,7 @@ impl DatabaseExecutor for SpiExecutor {
}
Spi::connect_mut(|client| {
pgrx::notice!("JSPG_SQL: {}", sql);
match client.update(sql, Some(args_with_oid.len() as i64), &args_with_oid) {
Ok(_) => Ok(()),
Err(e) => Err(format!("SPI Execution Failure: {}", e)),