Replies: 2 comments 3 replies
-
You want to create a scrollable References: |
Beta Was this translation helpful? Give feedback.
1 reply
-
Why not just return JSON (or an xml list) in your SQL with the full result set as an array? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello there!
Accessing a custom database I am trying to build BAR P12 messages with an unknown number of DG1 segments. The database does not contain hl7 messages, but keeps the the element information in lines with id, messageid, segment, element, subelement, content, and segementsetid as columns.
While I may have a workaround for my problem by fudging with the SQL statement (it's very much simplified here for development/testing purposes) I'd like to better understand how to access the array my database query is giving me.
This code actually works (abbreviated)
As soon as I try to go through the LOADED array a second time, it throws this error message, presumably because the pointer has arrived at the last element and doesn't reset when I call another while loop.
So far I have not found a way to reset the pointer (something I recall being possible in PHP, ages ago). Is there a way to run through the query results a second time?
Or manipulate the pointer?
Beta Was this translation helpful? Give feedback.
All reactions