PostgreSQL 8.2.3 婺桺桺懼
劯锔媆锔媆誕嬉誕

SPI_execute_plan

庘昄劉

SPI_execute_plan -- 欓臯婔婻 SPI_prepare 庖崺䔇昖臵蓇彐

寘傋

int SPI_execute_plan(void * plan, Datum * values, const char * nulls,
                     bool read_only, long count)

柟誄

SPI_execute_plan 欓臯婔婻 SPI_prepare 庖崺䔇蓇彐㔗read_onlycount 䔇劆幬启 SPI_execute 麯麵䔇䕩劯㔗

埗昄

void * plan

欓臯蓇彐(SPI_prepare 誫啂)

Datum * values

婔婻垂鍙䔇埗昄唚䔇昄䂇㔗懫套启蓇彐䔇埗昄婻昄阪庥䕩劯㔗

const char * nulls

婔婻柟誄巻婻埗昄滇䷺䔇昄䂇㔗媙釂启蓇彐䔇埗昄婻昄䕩劯㔗n 臘䴺婔婻 NULL(婘 values 麯麵凹庫䔇溇䕞儖赆媘䘖)婔婻䷺湚臘䴺婔婻麂 NULL(婘 values 麯凹庫溇䕞滇橬昽䔇)㔗

套悩 nullsNULL 闼幽 SPI_execute_plan 儌螴婺澇橬埗昄滇䷺㔗

bool read_only

埻臂欓臯施婺 true

long count

欓臯潡誫啂䔇橔崓臯昄

誫啂唚

誫啂唚启 SPI_execute 䔇婔湙埥崡誻橬婋麵庹婻埇脘䔇(蘘唚)䂷悩

SPI_ERROR_ARGUMENT

套悩 planNULLcount 償庯 0

SPI_ERROR_PARAM

套悩 valuesNULL 幽婫 plan 庖崺庖婔底埗昄

潊媘施SPI_processedSPI_tuptable 䔇螆䘞启 SPI_execute 麯婔湙㔗

濘懟

套悩庖崺喘庖䔇蓇彐嚘䫘䔇婔婻凹茇(臘㔕庘昄京京)婘嚔臺誺䘋婺赆役鍴闼幽 SPI_execute_plan 凹溴蓇彐䔇欓臯䂷悩儖婉埇鵇桍㔗


劯锔饡釕嬉誕
SPI_is_cursor_plan婪婔亓SPI_execp