2 ms·
>Why was there a NOOP in the table creation byte code? I don't see the NOOP in the article, but you do see these in sqlite when they, for example, have a struc
by tyingq 5y ago
>Why was there a NOOP in the table creation byte code?
I don't see the NOOP in the article, but you do see these in sqlite when they, for example, have a struct of opcodes do dual duty for something like open-for-reading and open-for writing, where the struct has this:
/* One of the following two instructions is replaced by an OP_Noop. */
{OP_OpenRead, 0, 0, 0}, /* 3: Open cursor 0 for reading */
{OP_OpenWrite, 0, 0, 0}, /* 4: Open cursor 0 for read/write */
- IgorPartola 5y ago> 13. Close 0 0 0 — Close the cursor we opened previously (cursor 0). > > 14. Close 0 0 0 — No-op, since the cursor is already closed