[Solar-talk] fetchRowset - method not implemented
Jeff Surgeson
solar at 3hex.com
Mon Oct 15 06:33:06 CDT 2007
> Use just $rows[0] instead of $rows->current(). This would be perfectly
> fine.
>
> This is not related to your problem, but now, thinking on it, if the
> system was messed and has more than one record with the same handle,
> it'd not hurt to limit the select to return only *two* records. If
> there are more than one, it means 'fail' anyway, no matter how many
> records were found. So I'd also add ->setPaging(2) to the select.
Should have remembered that from last time I had a similar error with regards
$rows->current() :-(
With regards ->setPaging(2), although it worked as you predicted, I forced a
duplicate user record and authentication failed as it should however with or
without setting paging to limit to 2 records it fails just the same, so I do
not see the point sorry, all you are doing is limiting the records to 2 just
in case there were 40000 duplicate records, is that not very unlikely?
considering your user class that creates new records would be or should be
making sure there are no duplicate records. Then again double checking is a
good thing! :-)
Thanks for the help, always very appreciated.
--
...........::::::...........
Jeff Surgeson / South Africa
More information about the Solar-talk
mailing list