List:Internals« Previous MessageNext Message »
From:Paul Cadach Date:March 17 2001 5:22pm
Subject:mysql_use_result() - some improvements required?
View as plain text  

As I understand mysql_store_result() differs from mysql_use_result() in
manner of fetching data from the network. First function fetches all records
selected by query into client's memory and then passes given array to other
API functions, while second function fetches records "on demand" (i.e. when
they requested by other client's API).

I'm interesting in next situation - when client doesn't want to fetch rest
of the selected records, it just calls mysql_free_result() function, which
frees allocated array after mysql_store_result() and fetches all records not
fetched before from the network.

Why do you think about adding "abort" code which can be sent to the server
from client to stop transmitting query results over the network?


mysql_use_result() - some improvements required?Paul Cadach17 Mar
  • mysql_use_result() - some improvements required?Michael Widenius19 Mar