Hi, > -----Original Message----- > From: Jim Dickenson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, January 29, 2002 5:12 PM > To: [EMAIL PROTECTED]; [EMAIL PROTECTED] > Subject: Problem with SQLSetPos(SQL_DELETE) > > > I have an application that works with EasySoft's OOB driver but not with > MyODBC. I have compiled version 2.50.39 under RedHat 7.2 and I think there > is a problem in the code. > > In cursor.c on line 217 there is a test to see if irow is being passed > correctly. I think the test is wrong. I fetch one record at a time so irow > can only be 1. As best as I can tell the test is checking against which row > in the whole result set we are currently on. This is not the test that > should be done as best as I can figure. Although I did select 6 records from > my datasource I am only reading one at a time. If I want to delete the > current record I want to delete the only record in my "fetch set" which is > record 1, not the specific record in the "result set", which in my case is > record 6. > > Looking at the code for SQLSetPos it looks like irow is taken as a row in > the "result set" not in the "fetched set". I do not think that this is > correct.
Yes, I agree !!! That was corrected in 2.50.40 version, and we didn't released that, as we wanted to have 3.51 out. So, you can find this in 3.51 driver, which has a completely different cursor handling based on the rowset and for batch operations. You will here the release tomorrow, and let me know the outcome after testing with new driver. You can also get the development version of 3.51 driver using: * Install Bitkeeper (http://www.bitkeeper.com/) * bk clone bk://work.mysql.com:7003 myodbc-3.51 * cd myodbc-3.51 * bk -r edit * aclocal; autoheader; autoconf; automake * ./configure * make * make install Regards, Venu -- For technical support contracts, go to https://order.mysql.com __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Mr. Venu <[EMAIL PROTECTED]> / /|_/ / // /\ \/ /_/ / /__ MySQL AB, Developer /_/ /_/\_, /___/\___\_\___/ California, USA <___/ www.mysql.com --------------------------------------------------------------------- Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive) To request this thread, e-mail <[EMAIL PROTECTED]> To unsubscribe, e-mail <[EMAIL PROTECTED]> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php