search for: query_result

Displaying 5 results from an estimated 5 matches for "query_result".

2009 Jan 14
1
setting header in views?
currently iam using FasterCSV to render csv pages format.csv do csv_string = FasterCSV.generate do |csv| # header row csv << @query_result[0].keys @query_result.each do |x| csv << x.values end end #send it to the browser send_data csv_string, :type => ''text/csv; charset=iso-8859-1; header=present'', :disposition => "attachmen...
2007 Sep 24
2
ferret fuzzy matches
Hi guys, Is there some way of getting ferret matches string, when i do a fuzzy search? The scenario is this: 1. The user search for ''show'' 2. Nothing was found 3. So I do a fuzzy search, passing ''show~'' 4. It gives me somes results, most of all was matched with ''showcase'' 5. So I want to tell the user that: Nothing was found with
2006 Apr 25
2
Question about Callbacks in link_to_remote
Currently, I have a link_to_remote like this: <%= link_to_remote("Get Results", :update => ''query_results'', :with => "''tags='' + $F(''query_tags'')", :loading => "new Effect.Appear(''comment_loading'')", :complete => "Element.hide(''comment_loading...
2006 Apr 23
5
Newbie Ajaxy Question
...ontroller. I can only get my observer to work with the previous rhtml code. Here''s the bulk of my code: from the _form.rhtml partial: <p><label for="query_tags">Tags</label><br/> <%= text_field_tag :tags %></p> <p><label for="query_results">Results</label><br/> <%= text_area ''query'', ''results'' %></p> from the new.rhtml: <%= form_remote_tag :action => ''create'' %> <%= render :partial => ''form'' %> <%= subm...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...sql_pgc *); + +/*** method invocation wrappers */ +#define the_qry(q) ((struct multi_pgsql_query *)q) + +static inline void start_query(void *q, struct multi_pgsql_pgc *pgc) +{ + dprintf(("%s: %p", __func__, q)); + the_qry(q)->vtable->start(the_qry(q), pgc); +} + +static inline void query_result(void *q, struct multi_pgsql_pgc *pgc, + PGresult **pgr) +{ + dprintf(("%s: %p", __func__, q)); + the_qry(q)->vtable->result(the_qry(q), pgc, pgr); +} + +static inline void abort_query(void *q, struct sql_result *r) +{ + dprintf(("%s: %p", __func__, q)); + + the_qry(q)-...