Skip to content

Instantly share code, notes, and snippets.

@pbogunovich
Created June 29, 2012 19:08
Show Gist options
  • Save pbogunovich/3020012 to your computer and use it in GitHub Desktop.
Save pbogunovich/3020012 to your computer and use it in GitHub Desktop.
# ruby string management seems to not properly understand the MSG_PROMPT escape character.
# In order to avoid data loss the @record_set array is built once that all tuples have been retrieved
@record_set = record_set.split("\t]\n")
if @record_set.length != @query['rows'].to_i
raise MonetDBQueryError, "Warning: Query #{@query['id']} declared to result in #{@query['rows']} but #{@record_set.length} returned instead"
end
end
@record_set.freeze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment