fixed more query volatility issues
This commit is contained in:
@ -77,8 +77,8 @@ impl DatabaseExecutor for SpiExecutor {
|
|||||||
|
|
||||||
pgrx::debug1!("JSPG_SQL: {}", sql);
|
pgrx::debug1!("JSPG_SQL: {}", sql);
|
||||||
self.transact(|| {
|
self.transact(|| {
|
||||||
Spi::connect(|client| {
|
Spi::connect_mut(|client| {
|
||||||
match client.select(sql, Some(args_with_oid.len() as i64), &args_with_oid) {
|
match client.update(sql, Some(args_with_oid.len() as i64), &args_with_oid) {
|
||||||
Ok(tup_table) => {
|
Ok(tup_table) => {
|
||||||
let mut results = Vec::new();
|
let mut results = Vec::new();
|
||||||
for row in tup_table {
|
for row in tup_table {
|
||||||
|
|||||||
Reference in New Issue
Block a user