| 25 | |
| 26 | struct NextVal { |
| 27 | static void operation(string_t& input, ValueVector& result, void* dataPtr) { |
| 28 | auto ctx = reinterpret_cast<FunctionBindData*>(dataPtr)->clientContext; |
| 29 | auto cnt = reinterpret_cast<FunctionBindData*>(dataPtr)->count; |
| 30 | auto catalog = catalog::Catalog::Get(*ctx); |
| 31 | auto transaction = transaction::Transaction::Get(*ctx); |
| 32 | auto sequenceName = input.getAsString(); |
| 33 | auto sequenceEntry = |
| 34 | catalog->getSequenceEntry(transaction, sequenceName, ctx->useInternalCatalogEntry()); |
| 35 | sequenceEntry->nextKVal(transaction, cnt, result); |
| 36 | result.state->getSelVectorUnsafe().setSelSize(cnt); |
| 37 | } |
| 38 | }; |
| 39 | |
| 40 | function_set CurrValFunction::getFunctionSet() { |
nothing calls this directly
no test coverage detected