YottaDB / YDB

Mirrored from https://gitlab.com/YottaDB/DB/YDB
Other
76 stars 37 forks source link

ydb_subscript_next_s(nonexistentVariable) gives back "0" #347

Closed pkoper closed 5 years ago

pkoper commented 5 years ago

ydb_subscript_next_s() for nonexistent local returns next subscript "0"

Running https://gist.github.com/pkoper/53ee72ab35bbfcbfdabec2710e3085e1 prints:

next(x)
rc = 0, next.len_used = 1, next.buf_addr = |0|
set(x, val)
next(x)
rc = 0, next.len_used = 0, next.buf_addr = ||

Expected result:

next(x)
rc = 0, next.len_used = 0, next.buf_addr = ||
set(x, val)
next(x)
rc = 0, next.len_used = 0, next.buf_addr = ||
nars1 commented 5 years ago

@pkoper : Thanks for the report. This is tracked at https://gitlab.com/YottaDB/DB/YDB/issues/394 (we migrated to gitlab a while back) and will be fixed in the upcoming r1.24 release.