lib/monetdb/connection/query.rb in monetdb-0.2.1 vs lib/monetdb/connection/query.rb in monetdb-0.2.2

- old
+ new

@@ -22,9 +22,18 @@ response end alias :select_rows :query + def select_values(query) + select_rows(query).collect{|x| x[0]} + end + + def select_value(query) + row = select_rows(query)[0] + row[0] if row + end + private def extract_headers!(response) [parse_query_header!(response), parse_scheme_header!(response)] end