This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
create table t1(i int)$$ | |
select * from t1; | |
- cur->vs_stab = bdb_temp_table_create(cur->state, bdberr); // bdb/cursor.c (Table of records to skip in the virtual stripe.) | |
insert into t1 values(1); | |
- tran->db = bdb_temp_array_create(thedb->bdb_env, &bdberr); // osqlq_bplog_start() db/osqlblockproc.c (temptable for bplog) | |
- tran->db_ins = bdb_temp_array_create(thedb->bdb_env, &bdberr); // osqlq_bplog_start() db/osqlblockproc.c (reorder) | |
- rc = create_tablecursor(env->bdb_env, &tbl->add_tbl, &tbl->add_cur, &bdberr, // osql_insrec() (shadow - add tbl) | |
- rc = create_tablecursor(env->bdb_env, &tbl->upd_tbl, &tbl->upd_cur, &bdberr, // osql_insrec() (shadow - upd tbl) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- script.lua | |
-- Receives a table, returns the sum of its components. | |
io.write("The table the script received has:\n"); | |
x = 0 | |
for i = 1, #foo do | |
print(i, foo[i]) | |
x = x + foo[i] | |
end | |
io.write("Returning data back to C\n"); | |
return x |