TClientDataset Android question

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
zvasku
Posts: 77
Joined: Tue 19 Sep 2006 12:04

TClientDataset Android question

Post by zvasku » Fri 06 Dec 2013 12:41

Hello,

I'm using TClientDataset-TDatasetProvider-TUniQuery with embeded sqlite database on Adroid 4.x. Not sure if it's problem with unidac, but when I'm using DECIMAL(p,s) fields SetRange on client dataset kills app on "Bus error".

Do you have any ideas please?

Thanks
Zdenek

zvasku
Posts: 77
Joined: Tue 19 Sep 2006 12:04

Re: TClientDataset Android question

Post by zvasku » Fri 06 Dec 2013 19:18

Looks like problem in tclientdataset. Sent qc to Embarcadero.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TClientDataset Android question

Post by AlexP » Mon 09 Dec 2013 09:29

Hello,

Instead of the TClientDataSet.SetRange standard method, you can use our TUniQuery.SetRange method.

zvasku
Posts: 77
Joined: Tue 19 Sep 2006 12:04

Re: TClientDataset Android question

Post by zvasku » Wed 11 Dec 2013 13:13

We use TClientDataset-TDatasetProvider-TUniQuery.

zvasku
Posts: 77
Joined: Tue 19 Sep 2006 12:04

Re: TClientDataset Android question

Post by zvasku » Thu 12 Dec 2013 10:28

I'm back here.
We have problems with tcleintDataset-TuniQuery-TUniCOnnection with sqlite database. Now I'm not able to compile and do not want to compilefrom source so I can determine the right behaviour. We have problem adding index to clientdataset.

When I create simple test case with empty db and

create table A(AA integer,BB decimal(10,0))

After open of table and AddIndex the app hangs on or exits.

Do you have any ideas?

Thanks
Zdenek

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TClientDataset Android question

Post by AlexP » Fri 13 Dec 2013 10:50

Hello,

We cannot reproduce the problem, please try to reproduce the problem on the standard DataAccess components.

zvasku
Posts: 77
Joined: Tue 19 Sep 2006 12:04

Re: TClientDataset Android question

Post by zvasku » Fri 13 Dec 2013 12:22

Table must be empty. I wil try it with tuniquery, but I need TClientDataset.

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Re: TClientDataset Android question

Post by AlexP » Mon 16 Dec 2013 09:00

Hello,

We still cannot reproduce the error. Please try closing UniQuery before setting the index.

zvasku
Posts: 77
Joined: Tue 19 Sep 2006 12:04

Re: TClientDataset Android question

Post by zvasku » Mon 16 Dec 2013 16:59

UniQuery isclosed. It is unidirectional. I will prepare test case and will investigate deeply where is the problem.

Thanks
Zdenek

Post Reply