Page 1 of 1

Assertion failure

Posted: Mon 19 Jun 2006 16:18
by jme3
I'me trying to do an incremental search on a field of numbers(varchar10) using % wildcard. If I start with a 2, it works. If I start with anything else, 1, 3, 7 etc. I get a "Assertion failure (D:\Projects\Delphi\Mydac\Source\MyClasses.pas, line 3972)". Useing MyDAC 4.30.0.12 and BCB5 on a table with 30,000 records. I'me a new user so maybe I'me missing something here but I'me completly confused.

Assertion Failure

Posted: Mon 19 Jun 2006 16:20
by jme3
Also if I run the equivelent query directly on the db, it works fine.?????

Posted: Mon 19 Jun 2006 19:58
by swierzbicki
The best thing to do is to supply a sample application.

Assertion Failure

Posted: Mon 19 Jun 2006 21:28
by jme3
Thanks for the reply. I will put together a simple app tomorrow. A few new observations. I upgraded to MyDAC 4.30.1.15 and am using MySQL 5.0.19 and now failure shows line 3979 in MyClasses.pas. My table in question has 31 fields, mostly varchars and ints along with 2 dates and 2 times. If I comment out the 2 time fields in my select all works as expected. If I add either one of them back it again fails. Thanks again for any help. This one is driving me nuts.

Posted: Tue 20 Jun 2006 07:17
by swierzbicki
Hello jme3,

I forgot this : with your sample application also provide an SQL Script to generate the Database + Table used in your sample.

With such infos, I'm sure that CrLab will find your bug !

Posted: Tue 20 Jun 2006 09:48
by Antaeus
jme3, unfortunately the information you have provided isn't enough. Please send us (evgeniyD*crlab*com) a complete small sample to demonstrate it, including script to create and fill table. Also supply us with exact version of Delphi, C++ Builder or Kylix.

Assertion Failure

Posted: Tue 20 Jun 2006 11:46
by jme3
Thanks again for your quick response. Will put that together today. When ready, where should I send it.

Posted: Tue 20 Jun 2006 12:02
by Antaeus
We wait for your letter to evgeniyD*crlab*com.

Posted: Wed 21 Jun 2006 14:01
by Antaeus
Thank you for sample. We have reproduced this problem and fixed it. This fix will be included in the next MyDAC build.
This bug appears in Direct mode for prepared statements when fetching time field with value that equals to '00:00:00'.

Assertion Failure

Posted: Wed 21 Jun 2006 16:21
by jme3
Thank you very much. When will that next release be.
jme3