You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# using query_onedb.query_onequery_str,var1,var2do |rs|
something=rs.read(String)end# using from_rs via DB.mappingdb.queryquery_str,var1,var2do |rs|
from_rsrsend# using rs.eachdb.queryquery_str,var1,var2do |rs|
rs.eachdosomething=rs.read(String)endend
Although I was not using the API correctly, an exception should be raised.
Using pg driver
The text was updated successfully, but these errors were encountered:
samueleaton
changed the title
Process hangs in query block if reading from rs.read if not using rs.each
Process hangs in query block if doing rs.read before rs.each
Jan 13, 2017
The same happens if you try to rs.read when there isn't another column. Basically unless you do it perfectly, you get hangs instead of exceptions. I spent quite a while debugging this! This might be limited to the PG driver only. @will?
From our conversion that I posted to, @spalladino said:
Even if it works, please open an issue in crystal-db explaining the situation; if making that check does not incur in a performance penalty, I'd consider adding it to raise an exception rather than just hanging on the socket
(From our chat in gitter.im)
Process stops at a
rs.read(String)
for minutes without ever continuing (chk 2
will never be printed):The following examples work fine:
Although I was not using the API correctly, an exception should be raised.
Using
pg
driverThe text was updated successfully, but these errors were encountered: