| 1386 | } |
| 1387 | |
| 1388 | Datum |
| 1389 | SPI_datumTransfer(Datum value, bool typByVal, int typLen) |
| 1390 | { |
| 1391 | MemoryContext oldcxt; |
| 1392 | Datum result; |
| 1393 | |
| 1394 | if (_SPI_current == NULL) |
| 1395 | elog(ERROR, "SPI_datumTransfer called while not connected to SPI"); |
| 1396 | |
| 1397 | oldcxt = MemoryContextSwitchTo(_SPI_current->savedcxt); |
| 1398 | |
| 1399 | result = datumTransfer(value, typByVal, typLen); |
| 1400 | |
| 1401 | MemoryContextSwitchTo(oldcxt); |
| 1402 | |
| 1403 | return result; |
| 1404 | } |
| 1405 | |
| 1406 | void |
| 1407 | SPI_freetuple(HeapTuple tuple) |
no test coverage detected