List:MySQL ODBC« Previous MessageNext Message »
From:Michael Widenius Date:March 15 1999 9:17pm
Subject:myodbc bugreport
View as plain text  
Hi!

>>>>> "Manush" == Manush Dodunekov <manush@stripped> writes:

Manush> Hi,

Manush> I just noticed two bugs in myodbc-2.50.22 (linux2.2/glibc):


Manush> * SQLColAttributes() called with SQL_COLUMN_COUNT doesn't check if
stmt-> result is not null, which causes a segfault if it was.
Manush>   (line 145,results.c)

Should take care that stmt holds a valid SQL query.

Manush> * SQLGetStmtOption() with SQL_ROW_NUMBER seems to return 0-based
Manush>   row numbers, when ODBC says rows start at 1
Manush>   (line 206,options.c)


Manush> Jag borde kanske skriva det här på svenska, men man vet aldrig =)

Manush> regards,
Manush> ------------------------------------------
Manush>   Manush Dodunekov / LiteCom Interactive
Manush>  manush@stripped, http://www.litecom.se
Manush> ------------------------------------------

Thanks!

Here is a patch for results.c


Attachment: [application/octet-stream] patch
Regards, Monty
Thread
myodbc bugreportManush Dodunekov15 Mar
  • myodbc bugreportMichael Widenius16 Mar