B
bemsofhvs
Guest
At the moment the read() method of a JsonObject supports a ProDataSet, Temp-table or Buffer handle but the buffer handle should be a buffer to a temp-table. I would like to be able to use a database buffer as well so I can fill a JsonObject straight away with the contents of a database buffer. I can make a dynamic temp-table, use the database buffer to make the structure of the temp-table like the buffer, create a new record into the temp-table and do a buffer-copy of the database buffer to the temp-table and then use the temp-table buffer to read the record into the JsonObject but that's a lot of code that (In my opinion) really shouldn't be needed. Also, at the moment, (Openedge 11.5 at least), it sorta works (unless it crashes your session... [
]) see Defect PSC00344994 So, instead of adding an error message when using a database buffer anymore, I would propose to fix this another way and support a database buffer to be used instead of just a temp-table buffer.
Continue reading...
Continue reading...