ADO RDD xHarbour

Re: ADO RDD xHarbour

Postby AHF » Fri Oct 23, 2015 2:27 pm

Gunther,

I see it now.
The app I m using does not accept single quotes in fields because of some xml extraction.

Try with this in ado_putvalue

xValue := '"'+xValue+'"'

Instead of xValue := "'"+xValue+"'"
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby byte-one » Sat Oct 24, 2015 12:19 pm

Antonio, this is not functioning (MSSQL 2014). I use
Code: Select all  Expand view  RUN
xValue :="'"+ STRTRAN( xValue, "'", "''" )+"'"

I do not use crypted strings.
Regards,
Günther
---------------------------------
office@byte-one.com
User avatar
byte-one
 
Posts: 1048
Joined: Mon Oct 24, 2005 9:54 am
Location: Austria

Re: ADO RDD xHarbour

Postby AHF » Sat Oct 24, 2015 12:30 pm

Gunther,

Ill post a new build maybe today that solves this problem for all engines.
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby AHF » Sun Oct 25, 2015 6:05 pm

New build adordd version 1.0 at https://github.com/AHFERREIRA/adordd.git

Changes:

Should compile now with Harbour and without FiveWin but I didnt test it.
Field replaces with special chars (single quotes, apostrophes, etc ) should work now.
DbEval improve speed.
Update 01_README.PDF with adordd error codes
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby AHF » Tue Oct 27, 2015 11:50 am

New build adordd version 1.0 at https://github.com/AHFERREIRA/adordd.git

Small bug corrections:

Corrected bug when updating a indexkey with UDF index.
Corrected bug when adding new record with UDF index and UDF index is empty.
Corrected bug when ZAP was given an error after when refreshing recordset.
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby AHF » Wed Oct 28, 2015 7:51 pm

New build adordd ver 1.0 at https://github.com/AHFERREIRA/adordd.git

Changes:

Finally it seems that we managed to increase dramatically the opening times for huge tables and much better memory usage.

1) New SET ADO PRE OPEN THRESHOLD TO nRecords

This set will define how adordd will open the tables during app run time.

All the tables with records equal or greater than nRecords and without any WHERE opening clause
will be all open during app initialization.

You will wait a little for the app to start but after all table opening it will be very fast.
This will consume much memory at start but less during app run time.

You should balance yourself the value of nRecords accordingly to the time you are willing to wait to open
a table and your memory availability.
Its very easy opening a couple of tables > 500.000 recs to use some gigas of memory.

Even without this SET adordd will only take some time opening a table if its not open already
otherwise it will be very fast.

adordd its now extremely fast and can be truly compared to any other dbfcdx kind of rdd.

Ive made some trials and it seems to be running ok. Please check it yourselves and revert.

2) Code cleaning

3) Compile improvement with Harbour / xHarbour with or without FiveWin.

4) 01_readme.pdf new SET information.
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby pieter » Thu Oct 29, 2015 8:34 am

Antonio,

Thank you for this adordd version and adordd in general.

I tried to compile/link this newest adordd.

I got the following error:

Error: Unresolved external '_HB_FUN_HB_PS' referenced from C:\PIETER\XHARBOUR123
\LIB\ADORDD.LIB|adordd

Pieter
User avatar
pieter
 
Posts: 117
Joined: Thu Jan 08, 2015 9:27 am

Re: ADO RDD xHarbour

Postby cnavarro » Thu Oct 29, 2015 8:37 am

I have not had time to try your great work
I hope I can use it from now
Thank you for your effort
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6549
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: ADO RDD xHarbour

Postby AHF » Thu Oct 29, 2015 8:48 am

Pieter,

You must compile and link adordd.prg not adordd.lib.

There is a bug in INDEX ON temporary files without any UDFs or index condition otherwise its ok.
Ill post a new corrected build asap.
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby AHF » Thu Oct 29, 2015 8:51 am

Cristobal,

Thanks, Im looking forward to your comments.
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby pieter » Thu Oct 29, 2015 9:11 am

Antonio, oké, thanks.

Same error:
Error: Unresolved external '_HB_FUN_HB_PS' referenced from C:\PIETER\UB404-8SEPT
EMBER2015-V4\UB\ADORDD.OBJ

Am I doing something wrong with compiling/linking (or is it because of the bug)?

Pieter
User avatar
pieter
 
Posts: 117
Joined: Thu Jan 08, 2015 9:27 am

Re: ADO RDD xHarbour

Postby AHF » Thu Oct 29, 2015 9:20 am

Pieter,

Are you using Harbour or xHarbour?

Try comment #include "hbcompat.ch"
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby pieter » Thu Oct 29, 2015 9:42 am

Antonio, I use Xharbour. I comment #include "hbcompat.ch" like you suggested. it is solved now. Thanks.
User avatar
pieter
 
Posts: 117
Joined: Thu Jan 08, 2015 9:27 am

Re: ADO RDD xHarbour

Postby AHF » Thu Oct 29, 2015 9:53 am

Pieter,

Strange I use xHarbour and it compiles ok with that line not commented.

Could you try this to see if it works?

#ifndef __XHARBOUR__
#include "hbcompat.ch"
#endif
Regards
Antonio H Ferreira
AHF
 
Posts: 838
Joined: Fri Feb 10, 2006 12:14 pm

Re: ADO RDD xHarbour

Postby pieter » Thu Oct 29, 2015 10:02 am

Antonio,

#ifndef __XHARBOUR__
#include "hbcompat.ch"
#endif

With above code my program compiles and link.

Pieter
User avatar
pieter
 
Posts: 117
Joined: Thu Jan 08, 2015 9:27 am

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], TimStone and 43 guests