URGENT BUG
URGENT BUG
Hello,
I was using 5.00.1.7 without problems until I updated to latest 5.10 and now i have an error message:
EDatabaseError: Cannot access field 'prepaymoney' as type Float
prepaymoney is decimal 6.2
is it necessary when you fix something to destroy other things working? Really, I cant understand this.
Thanks god Im keeping an complete file list of all mydac versions so I can backward in case of problem.
I would suggest other users doing the same.
I was using 5.00.1.7 without problems until I updated to latest 5.10 and now i have an error message:
EDatabaseError: Cannot access field 'prepaymoney' as type Float
prepaymoney is decimal 6.2
is it necessary when you fix something to destroy other things working? Really, I cant understand this.
Thanks god Im keeping an complete file list of all mydac versions so I can backward in case of problem.
I would suggest other users doing the same.
-
swierzbicki
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59
Hi,
5.0.1.7 introduced these kinds of bugs... it looks 5.0.10.9 correct them !
I had a similar issue with an persistant field :
- build 5.0.1.7 created an LargeInt field (taht was wrong and I didn't noticed)
- build 5.10.9 raised an error with something like : LargeInt filed found, expected Boolean field. Removing and recreating this persistent fields solves my issue.
5.0.1.7 introduced these kinds of bugs... it looks 5.0.10.9 correct them !
I had a similar issue with an persistant field :
- build 5.0.1.7 created an LargeInt field (taht was wrong and I didn't noticed)
- build 5.10.9 raised an error with something like : LargeInt filed found, expected Boolean field. Removing and recreating this persistent fields solves my issue.
Re: URGENT BUG
I tried to create a simple application that works with a field of such type using MyDAC 5.00.1.7, then I installed MyDAC 5.10.0.9 and tested this application. I did not find any problems.ben wrote:Hello,
I was using 5.00.1.7 without problems until I updated to latest 5.10 and now i have an error message:
EDatabaseError: Cannot access field 'prepaymoney' as type Float
prepaymoney is decimal 6.2
is it necessary when you fix something to destroy other things working? Really, I cant understand this.
Thanks god Im keeping an complete file list of all mydac versions so I can backward in case of problem.
I would suggest other users doing the same.
What should I do to reproduce the problem? When does the problem appear? A small sample and a script to create the table that reproduce this problem would help us very much. If you have such sample, you can send it to evgeniyd*crlab*com.
Corresponding to your request by email we extended ability to detect MySQL boolean constants for queries like:swierzbicki wrote:Hi,
5.0.1.7 introduced these kinds of bugs... it looks 5.0.10.9 correct them !
I had a similar issue with an persistant field :
- build 5.0.1.7 created an LargeInt field (taht was wrong and I didn't noticed)
- build 5.10.9 raised an error with something like : LargeInt filed found, expected Boolean field. Removing and recreating this persistent fields solves my issue.
Code: Select all
Set @SumA = 999 ,
@SumB = 1000;
Select
Case When @SumA = @SumB then True else False End as SumOK-
swierzbicki
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59
Hi Antaeus,
Yes you are right, I've asked for this ! (BTW thank you for having implementing it). This is working fine.
I was talking about something different : as I wouldn't stop my development, I have replaced the True / False keywords with 1 / 0.
You can see the code below :
With Build 5.1.0.7 SumOK field is treated as an LargeInt
Now, with Build 5.1.0.9 SumOK field is treated as an Boolean
Is this expected ?
Ps : 5.0.1.7 didn't introduced such bug... and I was speaking too quick ! Sorry
Yes you are right, I've asked for this ! (BTW thank you for having implementing it). This is working fine.
I was talking about something different : as I wouldn't stop my development, I have replaced the True / False keywords with 1 / 0.
You can see the code below :
Code: Select all
Set @SumA = 999 ,
@SumB = 1000;
Select
Case When @SumA = @SumB then 1 else 0 End as SumOKNow, with Build 5.1.0.9 SumOK field is treated as an Boolean
Is this expected ?
Ps : 5.0.1.7 didn't introduced such bug... and I was speaking too quick ! Sorry
No it does not. We performed some additional tests, and it looks like there is no way to determine what constants were used for this field:swierzbicki wrote:Is this expected ?
Code: Select all
Select Case When @SumA = @SumB then 1 else 0 End as SumOKCode: Select all
Select Case When @SumA = @SumB then True else False End as SumOKI think, we have to rollback this modifiation in the next build.
-
swierzbicki
- Posts: 451
- Joined: Wed 19 Jan 2005 09:59