gettingstarted
[Top] [All Lists]

Re: mysql SQLSelect produces empty

To: <gettingstarted at lists dot realsoftware dot com>
Subject: Re: mysql SQLSelect produces empty
From: "Ian M. Jones" <ian at imij dot co dot uk>
Date: Thu, 28 Apr 2005 15:49:13 +0100 (BST)
Delivered-to: gettingstarted at lists dot realsoftware dot com
Importance: Normal
References: <0dc8c1aea3fa2c3d013f53730eb4598d at uwsp dot edu> <BAY15-F21E8331D19A7CCE1732D7A0230 at phx dot gbl>
mohamed safwat sadek said:
> using rb 5.5 mysql 4.1 SQLExecute working fine but SQLSelect produces
> empty  recored set
> i did as book saied so  (SQLExecute working fine) the record count is
> -1  when using sqlselect
> please help
>

Unfortunately the MySQL database plugin is not able to set the record count.

Instead, either do a "select count(*) as numrecs from blah where blah
blah" before running your real query, or loop through the record set and
keep count as you go.
Regards,
-- 
Ian
________________________________________
http://www.imij.co.uk
http://www.ianmjones.net (blog)



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>