RE : [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype varbytes-still stuck

2011-08-10 Thread Ludo Brands
 Oops, sorry, you're right. Your cygwin diffs don't seem to 
 agree with (the way I use) fpc patch; I got it to apply only 
 the first part of the patch... Now it works.
 

The patches I upload to bugs.freepascal are made with svn diff. The ones I
sent you earlier were made with cygwin diff since the code wasn't versioned
with svn.

 Using fpc diff -u --minimal oldfile newfile  patch.diff does 
 work for me with patch -p0  patch.diff I suppose you use 
 cygwin patch to apply the patches?
 

I use patch -p0  patch.diff.
The cygwin diff I sent earlier: I forgot to mention the diff -u parameter,
hence the different format. Sorry, 

Ludo

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype varbytes-still stuck

2011-08-10 Thread Reinier Olislagers
On 10-8-2011 9:49, Ludo Brands wrote:
 Oops, sorry, you're right. Your cygwin diffs don't seem to 
 agree with (the way I use) fpc patch; I got it to apply only 
 the first part of the patch... Now it works.

 
 The patches I upload to bugs.freepascal are made with svn diff. The ones I
 sent you earlier were made with cygwin diff since the code wasn't versioned
 with svn.
 I use patch -p0  patch.diff.
 The cygwin diff I sent earlier: I forgot to mention the diff -u parameter,
 hence the different format. Sorry, 
Thanks, no problem.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype varbytes-still stuck

2011-08-09 Thread Reinier Olislagers
On 9-8-2011 13:34, Ludo Brands wrote:
 I've changed ftVariant to base64 encoding (i.e. treat is as 
 binary) in commit 19: 
 
 Mmm... That's taking risks and requires quite some testing with the
 different host applications. When transferring data as strings, we know that
 apps do the string to integer/date/whatever transformation. But when you
 transfer them as binary, I'm afraid that they will be imported as is ie. no
 transformation. 
Yes, it is taking a risk. However, if I understand correctly, a variant
can contain an integer, string, anything really. Couldn't it also
contain blob or binary data?
Encoding it as base64 seems safer to me than just blindly writing it out
as a string.

(Don't know if ftVariant fields are ever used in real world databases
though)

I really don't care myself which way we go - I'll happily defer to your
expertise.

Just say the word  I'll change them all back to string ;)
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype varbytes-still stuck

2011-08-09 Thread Reinier Olislagers
On 9-8-2011 17:03, waldo kitty wrote:
 On 8/9/2011 10:42, Ludo Brands wrote:
Exception:   Access violation
Source unit:
Method name:
Line number: 574
  00.003  TestXSDExport_Access_NoXSD_NoDecimal  Error:

 Line 547 is where FillTestData is called. Not very usefull.
 
 line 547 or 574? the error report is 574 ;)
waldo, thanks for trying to help, unfortunately, I think he meant 574 ;)

FillTestData is called in 573; the next line is the end; of the Setup
procedure

I probably will need to write a test case for TBufdataset if that hasn't
already been done - I know there's some changes going on in the fcl-db
test set...

Thanks,
Reinier
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


RE : [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype varbytes-still stuck

2011-08-09 Thread Ludo Brands
  line 547 or 574? the error report is 574 ;)
 waldo, thanks for trying to help, unfortunately, I think he 
 meant 574 ;)
 
My keybroad is suffering from dyslexia. 

Lduo

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


Re: RE : [fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype varbytes-still stuck

2011-08-09 Thread waldo kitty

On 8/9/2011 11:21, Ludo Brands wrote:

line 547 or 574? the error report is 574 ;)

waldo, thanks for trying to help, unfortunately, I think he
meant 574 ;)


My keybroad is suffering from dyslexia.


mine does it all the time, too :lol:
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal


[fpc-pascal] Re: RE : Re: RE : RE : RE : Assigning value to ftVariant datatype varbytes-still stuck

2011-08-09 Thread Reinier Olislagers
On 9-8-2011 16:42, Ludo Brands wrote:
 Applied patch in fpc source, make clean, make all make install for 
 FPC, make for Lazarus, rescan fpc source directory, recompile test 
 project.
snip
 
 Downloaded the code and it raises an SUnsupportedFieldType when 
 creating the ftAutoInc field. That is OK since I didn't include 
 ftAutoinc in the supported list for TBufDataset. If you are not 
 getting this error, then the patch and/or install didn't work.
Oops, sorry, you're right. Your cygwin diffs don't seem to agree with
(the way I use) fpc patch; I got it to apply only the first part of the
patch...
Now it works.

Using fpc diff -u --minimal oldfile newfile  patch.diff does work for
me with patch -p0  patch.diff
I suppose you use cygwin patch to apply the patches?

Very glad the test is working again, now I can get back to improving the
export code!

Thanks a million!
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal