Unidac, sqlite, aggregation functions bug
Posted: Sat 31 Mar 2012 20:14
Hey
I just did some tests with Sqlite and i found serious bug
with types mismatch when
aggregation functions are used:
How to reproduce:
1) We have example sqlite db with :
table1:
field A: integer
field B: date
Now fill some records with values
2. New form. Put Uniconnection, UniQuery with
"select max(A) as maxA , max(B) as maxB from table1",
3. Design : On UniQuery: Active = true and Add All Fields.
4) Design : On UniQuery: Active = false
5) Now delete everything from table1
6) Turn on UniQuery: Active: True
Bang ! Error:
---------------------------
UniQuery1: Type mismatch for field 'maxA', expecting: LargeInt actual: String.
---------------------------
Delphi 2010 , Unidac 4.1.5
Any workarounds ?
greets
sk
I just did some tests with Sqlite and i found serious bug
with types mismatch when
aggregation functions are used:
How to reproduce:
1) We have example sqlite db with :
table1:
field A: integer
field B: date
Now fill some records with values
2. New form. Put Uniconnection, UniQuery with
"select max(A) as maxA , max(B) as maxB from table1",
3. Design : On UniQuery: Active = true and Add All Fields.
4) Design : On UniQuery: Active = false
5) Now delete everything from table1
6) Turn on UniQuery: Active: True
Bang ! Error:
---------------------------
UniQuery1: Type mismatch for field 'maxA', expecting: LargeInt actual: String.
---------------------------
Delphi 2010 , Unidac 4.1.5
Any workarounds ?
greets
sk